:root {
  --fg-ink: #09282d;
  --fg-text: #213f44;
  --fg-muted: #5c7074;
  --fg-line: #dce7e6;
  --fg-soft: #f4f8f7;
  --fg-paper: #fff;
  --fg-accent: #00a7ad;
  --fg-accent-dark: #066f76;
  --fg-shadow: 0 8px 24px rgba(9, 40, 45, .08);
  --fg-body-bg: #fff;
  --fg-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fg-border-radius: 4px;
}

.fg-feedback-open {
  border: 1px solid rgba(0, 122, 128, .35);
  background: #fff;
  color: #006c70;
  border-radius: 6px;
  padding: 7px 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.fg-feedback-label {
  display: block;
  margin: 10px 0;
  font-weight: 700;
}

.fg-feedback-label select,
.fg-feedback-label textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 5px;
  border: 1px solid rgba(20, 35, 34, .18);
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
}

.fg-feedback-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
body.fg-theme-retro {
  --fg-ink: #2a1f1d; --fg-text: #3c2f2d; --fg-muted: #6e5f5d; --fg-line: #dfcdc3;
  --fg-soft: #f5ece5; --fg-paper: #fceddb; --fg-accent: #ff6f59; --fg-accent-dark: #cc4f39;
  --fg-shadow: 4px 4px 0 rgba(42,31,29,.2); --fg-body-bg: #f5ece5;
  --fg-font: "Courier New", Courier, monospace; --fg-border-radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; color: var(--fg-ink); background: var(--fg-body-bg); font-family: var(--fg-font); line-height: 1.46; overflow-x: hidden; }
body.fg-detail-open, body.fg-modal-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.fg-site { min-height: 100vh; background: linear-gradient(180deg, #f7faf9 0, #fff 760px); }
h1,h2,h3,p { overflow-wrap: anywhere; }

/* ===== Kopfbereich (Pkt 1/2) ===== */
.fg-header {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; padding: 10px clamp(14px, 4vw, 54px);
  background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(220,231,230,.9); backdrop-filter: blur(14px);
}
.fg-brand { display: flex; align-items: center; gap: 12px; color: var(--fg-ink); text-decoration: none; min-width: 0; }
.fg-brand-logo { height: 44px; width: auto; object-fit: contain; border: 0; padding: 0; background: none; mix-blend-mode: darken; }
.fg-brand-taglin-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fg-brand-taglin { font-size: 14px; font-weight: 760; color: var(--fg-text); white-space: nowrap; }
.fg-country-indicator { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; min-height: 22px; padding: 2px 10px; border: 1px solid var(--fg-line); border-radius: 999px; background: rgba(255,255,255,.9); color: var(--fg-text); font-size: 12px; font-weight: 760; }
.fg-country-indicator-flag { width: 18px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(9,40,45,.08); }
.fg-country-indicator--at .fg-country-indicator-flag { background: linear-gradient(180deg, #d81e34 0 33.33%, #ffffff 33.33% 66.66%, #d81e34 66.66% 100%); }
.fg-country-indicator--de .fg-country-indicator-flag { background: linear-gradient(180deg, #111111 0 33.33%, #c0162b 33.33% 66.66%, #e0b437 66.66% 100%); }
.fg-header-sponsors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 32px; }
.fg-header-sponsors[hidden] { display: none !important; }
.fg-header-sponsor { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 4px 8px; border: 1px solid var(--fg-line); border-radius: 999px; background: #fff; text-decoration: none; box-shadow: 0 3px 10px rgba(9,40,45,.05); }
.fg-header-sponsor img { height: 22px; width: auto; max-width: 96px; object-fit: contain; }
.fg-header-sponsor:focus-visible, .fg-header-sponsor:hover { border-color: var(--fg-accent); }
.fg-header-actions { display: flex; gap: 6px; }
.fg-icon-btn { width: 38px; height: 38px; border: 1px solid var(--fg-line); border-radius: 8px; background: #fff; color: var(--fg-ink); font-size: 18px; font-weight: 800; line-height: 1; cursor: pointer; }
.fg-menu-btn { font-weight: 900; }
.fg-menu {
  position: absolute; top: 60px; right: clamp(10px,4vw,50px); z-index: 45; min-width: 260px;
  background: #fff; border: 1px solid var(--fg-line); border-radius: 10px; box-shadow: var(--fg-shadow); padding: 6px;
}
.fg-menu-section { padding: 6px 6px 10px; border-bottom: 1px solid var(--fg-line); margin-bottom: 4px; }
.fg-menu-section-title { margin: 0 0 8px; color: var(--fg-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.fg-menu-country-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fg-menu-country-btn { min-height: 38px; border: 1px solid var(--fg-line); border-radius: 999px; background: #fff; color: var(--fg-ink); font-size: 13px; font-weight: 780; cursor: pointer; }
.fg-menu-country-btn.is-active { border-color: var(--fg-accent); background: rgba(0,167,173,.08); color: var(--fg-accent-dark); }
.fg-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--fg-ink); text-decoration: none; font-weight: 700; }
.fg-menu a:hover { background: var(--fg-soft); }

/* Info-Modal (Pkt 2) */
.fg-modal { position: fixed; inset: 0; width: 100%; max-width: 100%; z-index: 95; pointer-events: none; opacity: 0; transition: opacity .16s ease; overflow: hidden; }
.fg-modal.is-open { pointer-events: auto; opacity: 1; }
.fg-modal-backdrop { position: absolute; inset: 0; background: rgba(9,40,45,.42); border: 0; cursor: pointer; }
.fg-modal-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(560px, 92vw); max-height: 86vh; overflow: auto; background: #fff; border-radius: 12px; box-shadow: var(--fg-shadow); padding: 20px; }
.fg-pref-modal-panel { width: min(540px, 92vw); }
.fg-pref-title { margin: 18px 0 10px; font-size: 18px; font-weight: 820; color: var(--fg-ink); }
.fg-pref-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.fg-pref-option { min-height: 52px; border: 1px solid var(--fg-line); border-radius: 12px; background: #fff; color: var(--fg-ink); font-size: 15px; font-weight: 780; cursor: pointer; padding: 10px 8px; }
.fg-pref-option.is-active { border-color: var(--fg-accent); background: rgba(0,167,173,.08); color: var(--fg-accent-dark); box-shadow: inset 0 0 0 1px rgba(0,167,173,.12); }
.fg-pref-note { margin: 16px 0 0; color: var(--fg-muted); font-size: 13px; line-height: 1.4; }
.fg-modal-close { float: right; border: 1px solid var(--fg-line); border-radius: 8px; background: #fff; padding: 6px 12px; font-weight: 700; color: var(--fg-ink); cursor: pointer; }
.fg-modal-panel h2 { margin-top: 0; font-size: 22px; }

/* ---------- Suche / Panel ---------- */
.fg-product, .fg-footer { padding-inline: clamp(14px, 4vw, 54px); }
#suche { scroll-margin-top: 78px; scroll-margin-block-start: 78px; }
.fg-product { padding-top: 18px; padding-bottom: 48px; }
.fg-search-panel { background: rgba(255,255,255,.92); border: 1px solid var(--fg-line); border-radius: 10px; box-shadow: var(--fg-shadow); padding: 14px; margin-bottom: 10px; }
.fg-search-row { display: grid; grid-template-columns: minmax(170px, 1.8fr) minmax(120px, 1fr); gap: 10px; align-items: end; }
.fg-search-row label, .fg-dates { display: grid; gap: 5px; color: var(--fg-muted); font-size: 12px; font-weight: 760; }
.fg-search-row input, .fg-search-row select { width: 100%; height: 42px; border: 1px solid #cddbdc; border-radius: 8px; background: #fff; color: var(--fg-ink); padding: 0 10px; font: 700 14px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
/* Standortfeld kürzer + eigene Buttons direkt daneben (Pkt 7/9): ▾ Schnellauswahl, 📍 Standort, ◐ Design */
.fg-location-row { display: flex; gap: 6px; align-items: center; }
.fg-location-row input { flex: 1 1 auto; min-width: 0; }
.fg-location-row .fg-icon-btn { flex: 0 0 auto; width: 40px; height: 40px; }
.fg-sort-cycle-btn { display: none; min-width: 72px; width: auto !important; padding: 0 10px; font: 800 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.fg-geo-btn { font-size: 17px; }
.fg-search-btn { font-size: 15px; }
.fg-theme-btn { flex: 0 0 auto; width: 42px; height: 42px; }
/* Die nativen Datumsfelder bleiben als unsichtbare State-/Fallback-Inputs erhalten; Z.4 steuert sie über Slider. */
.fg-dates { display: flex; gap: 6px; align-items: end; }
.fg-dates label { flex: 1 1 122px; max-width: 122px; min-width: 0; }
.fg-dates input[type=date] { min-width: 0; width: 100%; height: 38px; padding: 0 6px; font-size: 11.5px; }
.fg-dates label > span { font-size: 11.5px; }
.fg-dropdown { position: absolute; z-index: 30; width: 100%; background: #fff; border: 1px solid var(--fg-line); border-radius: 8px; box-shadow: var(--fg-shadow); padding: 4px; }
.fg-location-field { position: relative; }
.fg-location-feedback { min-height: 18px; margin: 6px 2px 0; color: var(--fg-muted); font-size: 12px; font-weight: 700; }
.fg-location-feedback.is-error { color: #b42318; }
.fg-location-feedback.is-success { color: #0a7a44; }
.fg-caret { font-size: 12px; opacity: .7; }

/* ---------- Z.4A Compact Discovery Controls ---------- */
.fg-sort-compact-field { display: grid; gap: 5px; color: var(--fg-muted); font-size: 12px; font-weight: 760; }
.fg-sort-compact { display: flex; flex-wrap: wrap; gap: 6px; }
.fg-sort-chip, .fg-time-chip {
  min-height: 34px; padding: 0 12px; border: 1px solid var(--fg-line); border-radius: 999px; background: #fff;
  color: var(--fg-ink); font-size: 13px; font-weight: 760; cursor: pointer;
}
.fg-sort-chip.active, .fg-time-chip.active {
  border-color: var(--fg-accent); background: rgba(0,167,173,.08); color: var(--fg-accent-dark);
}
.fg-discovery-compact {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.fg-compact-card {
  position: relative;
  border: 1px solid var(--fg-line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 4px 14px rgba(9,40,45,.04);
}
.fg-compact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.fg-time-preset-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.fg-daytime-card { margin-top: 9px; padding: 10px 12px; border: 1px solid var(--fg-line); border-radius: 9px; background: rgba(255,255,255,.78); }
.fg-daytime-head { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; color: var(--fg-muted); font-size: 12px; }
.fg-daytime-head strong { color: var(--fg-ink); font-size: 13px; }
.fg-daytime-action, .fg-daytime-rocket { min-height: 28px; border: 1px solid #c8d9d9; border-radius: 999px; background: #fff; color: var(--fg-ink); font-weight: 800; cursor: pointer; }
.fg-daytime-action { padding: 0 10px; }
.fg-daytime-rocket { width: 32px; padding: 0; }
.fg-daytime-slider { margin-top: 10px; }
.fg-daytime-scale { display: flex; justify-content: space-between; margin-top: 5px; color: var(--fg-muted); font-size: 10px; }
.fg-result-orientation { position: sticky; top: 0; z-index: 5; margin: 7px 0 4px; padding: 5px 9px; border-top: 1px solid var(--fg-line); border-bottom: 1px solid var(--fg-line); background: rgba(245,250,249,.96); color: var(--fg-muted); font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.fg-result-orientation { display: flex; align-items: center; gap: 9px; min-height: 38px; overflow: hidden; }
.fg-orientation-media { width: 64px; align-self: stretch; flex: 0 0 64px; background-position: center; background-size: cover; border-radius: 7px; }
.fg-orientation-media--fallback { background: linear-gradient(135deg, rgba(0,167,173,.20), rgba(246,193,64,.22)); }
.fg-best-of-info { margin: 7px 0; padding: 7px 10px; border-left: 3px solid var(--fg-teal); background: rgba(0,167,173,.06); color: var(--fg-muted); font-size: 12px; }
.fg-best-of-info strong { display: block; color: var(--fg-ink); letter-spacing: .03em; }
.fg-best-of-info button { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--fg-accent-dark); font: inherit; font-weight: 800; cursor: pointer; }
.fg-category-submenu { position: absolute; z-index: 30; display: flex; gap: 6px; margin-top: 4px; padding: 7px; border: 1px solid var(--fg-line); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.fg-category-submenu button { border: 1px solid var(--fg-line); border-radius: 9px; background: #fff; padding: 8px 10px; color: var(--fg-ink); font-weight: 780; white-space: nowrap; }
.fg-discovery-kicker {
  margin: 0;
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.fg-compact-head--time, .fg-compact-head--radius { align-items: center; margin-bottom: 6px; }
.fg-time-summary-static { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 0; }
.fg-time-summary-static .fg-discovery-value { margin: 0; }
.fg-discovery-value {
  margin: 2px 0 0;
  color: var(--fg-ink);
  font-size: 18px;
  font-weight: 820;
  line-height: 1.2;
}
.fg-compact-card--radius .fg-discovery-value { font-size: 20px; }
.fg-discovery-detail {
  margin: 4px 0 0;
  color: var(--fg-muted);
  font-size: 12px;
  line-height: 1.35;
}
.fg-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  max-height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.fg-slider-wrap {
  position: relative;
  height: 42px;
  margin-top: 2px;
  touch-action: none;
}
.fg-slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #dfe8e8;
}
.fg-slider-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,167,173,.35), rgba(0,167,173,.95));
}
.fg-range {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 42px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.fg-range:disabled {
  opacity: .55;
}
.fg-range::-webkit-slider-runnable-track {
  height: 42px;
  background: transparent;
}
.fg-range::-moz-range-track {
  height: 42px;
  background: transparent;
  border: 0;
}
.fg-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--fg-accent);
  box-shadow: 0 0 0 1px rgba(6,111,118,.24), 0 6px 12px rgba(9,40,45,.15);
  margin-top: 10px;
  pointer-events: auto;
  cursor: pointer;
}
.fg-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--fg-accent);
  box-shadow: 0 0 0 1px rgba(6,111,118,.24), 0 6px 12px rgba(9,40,45,.15);
  pointer-events: auto;
  cursor: pointer;
}
.fg-slider-scale {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 760;
}
.fg-slider-scale span {
  flex: 1 1 0;
  min-width: 0;
  text-decoration: none !important;
}
.fg-slider-scale span:last-child { text-align: right; }
.fg-slider-scale--radius span { text-align: center; }
.fg-slider-scale--radius span:first-child { text-align: left; }
.fg-slider-scale--radius span:last-child { text-align: right; }

/* ---------- Icons: Desktop 9 in einer Zeile, Smartphone 3×3 (Pkt 10) ---------- */
.fg-category-grid { display: grid; grid-template-columns: repeat(9, minmax(60px,1fr)); gap: 8px; margin-top: 6px; }
.fg-category {
  min-height: 62px; display: grid; place-items: center; align-content: center; gap: 1px;
  border: 1px solid var(--fg-line); border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgba(9,40,45,.04);
  color: var(--fg-ink); cursor: pointer; transition: border-color .14s ease, box-shadow .14s ease;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.fg-category.fg-func[data-func="brand"] { touch-action: none; }
.fg-category img { width: 30px; height: 26px; object-fit: contain; }
.fg-category span { font-size: 11px; font-weight: 820; line-height: 1.1; }
.fg-category .fg-emoji { font-size: 20px; line-height: 1; }
.fg-category:hover, .fg-category.active { border-color: var(--fg-accent); box-shadow: 0 8px 20px rgba(0,167,173,.12); }
/* Flagship / wechselnder Funktionsplatz (Pkt 8) – nur Vorschau, kein Geschäftsmodul */
.fg-flagship { position: relative; }
/* S.1.4: Tickets-Kennzeichnung „soon“ (dezent, keine große Badge); Icon/Design sonst unverändert. */
.fg-soon { position: absolute; top: 3px; right: 3px; color: var(--fg-muted); border: 1px solid var(--fg-line); background: #fff; font-size: 9px; font-weight: 800; letter-spacing: .4px; padding: 1px 4px; border-radius: 999px; }
.fg-cat-set--atomic .fg-category.fg-func[data-func="tickets"] { position: relative; }

/* ---------- Ergebnisse / Karte (Pkt 2/3/10/11: sticky, stacking) ---------- */
.fg-results-band { display: grid; gap: 8px; }
.fg-results-summary { min-height: 22px; }
.fg-result-line { margin: 0; color: var(--fg-muted); font-size: 13px; font-weight: 760; }
.fg-map-wrap { position: sticky; top: 8px; z-index: 6; background: rgba(255,255,255,.96); border-radius: 10px; padding: 2px; }
.fg-map { height: 280px; max-height: 42vh; border: 1px solid var(--fg-line); border-radius: 10px; background: #e5ece7; overflow: hidden; box-shadow: var(--fg-shadow); }
.fg-events { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; padding-bottom: 40px; }
.fg-card--marketing { border: 1px solid rgba(0,167,173,.28); background: linear-gradient(180deg, rgba(0,167,173,.05), #fff); }
.fg-card--marketing .fg-card-right { display: grid; gap: 10px; }
.fg-card--marketing-listing .fg-card-right { align-content: start; }
.fg-card-ad-label { display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px; border-radius: 999px; background: rgba(0,167,173,.12); color: var(--fg-accent-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.fg-card-ad-copy { margin: 0; color: var(--fg-text); font-size: 14px; }
.fg-card-ad-meta { margin: 0; color: var(--fg-muted); font-size: 13px; }
.fg-card-detail--marketing { border-color: var(--fg-accent) !important; background: #fff !important; color: var(--fg-accent-dark) !important; }
.fg-card-ad-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--fg-accent); border-radius: 8px; background: var(--fg-accent); color: #fff; font-weight: 800; text-decoration: none; width: fit-content; cursor: pointer; }
.fg-card-ad-cta:hover, .fg-card-ad-cta:focus-visible { background: var(--fg-accent-dark); border-color: var(--fg-accent-dark); }
.fg-card--marketing-reveal {
  --fg-reveal-expanded-height: 248px;
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  gap: 0;
  overflow: visible;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  cursor: default;
  transition: padding .56s cubic-bezier(.22,1,.36,1), border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.fg-card--marketing-reveal.is-revealing,
.fg-card--marketing-reveal.is-revealed,
.fg-card--marketing-reveal.is-static {
  padding: 10px;
  border-color: rgba(0,167,173,.28);
  background: linear-gradient(180deg, rgba(0,167,173,.05), #fff);
  box-shadow: var(--fg-shadow);
}
.fg-marketing-reveal-shell {
  position: relative;
  min-height: 0;
  max-height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #173042;
  transform-origin: center top;
  transition: max-height .56s cubic-bezier(.22,1,.36,1), filter .56s cubic-bezier(.22,1,.36,1), opacity .28s ease;
  filter: saturate(.96);
  opacity: 0;
}
.fg-card--marketing-reveal.is-revealing .fg-marketing-reveal-shell,
.fg-card--marketing-reveal.is-revealed .fg-marketing-reveal-shell,
.fg-card--marketing-reveal.is-static .fg-marketing-reveal-shell {
  max-height: var(--fg-reveal-expanded-height);
  opacity: 1;
  filter: saturate(1);
}
.fg-marketing-reveal-media,
.fg-marketing-reveal-media > img,
.fg-marketing-reveal-media > video,
.fg-marketing-reveal-media .fg-card-fallback,
.fg-marketing-reveal-media .fg-fallback-media,
.fg-marketing-reveal-media .fg-marketing-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fg-marketing-reveal-media {
  opacity: 0;
  transition: opacity .34s ease .08s;
}
.fg-card--marketing-reveal.is-revealing .fg-marketing-reveal-media,
.fg-card--marketing-reveal.is-revealed .fg-marketing-reveal-media,
.fg-card--marketing-reveal.is-static .fg-marketing-reveal-media {
  opacity: 1;
}
.fg-marketing-reveal-media > img,
.fg-marketing-reveal-media > video,
.fg-marketing-reveal-media .fg-marketing-video-fallback { object-fit: cover; }
.fg-marketing-reveal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,40,45,.16), rgba(9,40,45,.74));
  opacity: 0;
  transition: opacity .28s ease .08s;
}
.fg-card--marketing-reveal.is-revealing .fg-marketing-reveal-overlay,
.fg-card--marketing-reveal.is-revealed .fg-marketing-reveal-overlay,
.fg-card--marketing-reveal.is-static .fg-marketing-reveal-overlay {
  opacity: 1;
}
.fg-marketing-reveal-body {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: var(--fg-reveal-expanded-height);
  padding: 18px;
  color: #fff;
  transform: translateY(12px);
  opacity: 0;
  transition: opacity .24s ease .14s, transform .24s ease .14s;
}
.fg-marketing-reveal-body .fg-card-ad-label { background: rgba(255,255,255,.18); color: #fff; }
.fg-marketing-reveal-body h3 { margin: 0; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.06; color: #fff; }
.fg-marketing-reveal-body .fg-card-ad-copy { color: rgba(255,255,255,.92); max-width: 34ch; }
.fg-marketing-reveal-partner { margin: 0; font-size: 13px; font-weight: 760; letter-spacing: .03em; text-transform: uppercase; color: rgba(255,255,255,.84); }
.fg-marketing-reveal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fg-card--marketing-reveal .fg-card-ad-cta { background: #fff; color: var(--fg-accent-dark); border-color: #fff; }
.fg-card--marketing-reveal .fg-card-ad-cta:hover,
.fg-card--marketing-reveal .fg-card-ad-cta:focus-visible { background: rgba(255,255,255,.88); border-color: rgba(255,255,255,.88); }
.fg-card--marketing-reveal .fg-marketing-media-disclosure { padding-bottom: 8px; }
.fg-card--marketing-reveal.is-revealing .fg-marketing-reveal-body,
.fg-card--marketing-reveal.is-revealed .fg-marketing-reveal-body,
.fg-card--marketing-reveal.is-static .fg-marketing-reveal-body {
  opacity: 1;
  transform: translateY(0);
}
.fg-card--marketing-reveal.is-static,
.fg-card--marketing-reveal.is-static .fg-marketing-reveal-shell,
.fg-card--marketing-reveal.is-static .fg-marketing-reveal-body,
.fg-card--marketing-reveal.is-static .fg-marketing-reveal-media,
.fg-card--marketing-reveal.is-static .fg-marketing-reveal-overlay {
  transition: none !important;
}
.fg-marketing-detail-summary .fg-card-ad-label { margin-bottom: 8px; }
.fg-marketing-detail-module { display: grid; gap: 8px; }
.fg-marketing-detail-module p { margin: 0; }
.fg-marketing-detail-partner-logo { height: 28px; width: auto; object-fit: contain; }
.fg-marketing-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fg-marketing-logo-wrap { display: inline-flex; align-items: center; }
/* Detail offen: Karte komplett in den Hintergrund (deckt nie das Eventdetail) */
body.fg-detail-open .fg-map-wrap { visibility: hidden; overflow: hidden; }
.fg-detail-drawer { z-index: 120; }
/* benutzerdefinierter Pin (transparentes Loch -> Karte sichtbar) */
.fg-pin { background: transparent; border: 0; }
.fg-pin svg { filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }

/* Pins: kleiner, leichter, Loch transparent */
.fg-pin { background: transparent; border: 0; }
.fg-pin svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.22)); }

/* ---------- Event-Cards (Pkt 5/6) ---------- */
.fg-card { display: grid; gap: 10px; padding: 10px; background: var(--fg-paper); border: 1px solid var(--fg-line); border-radius: var(--fg-border-radius); box-shadow: var(--fg-shadow); cursor: pointer; transition: all .25s ease; }
.fg-card:hover { box-shadow: 0 12px 28px rgba(9,40,45,.12); }
.fg-card--rich { grid-template-columns: 96px minmax(0,1fr); grid-template-rows: auto auto; }
.fg-card--rich .fg-card-media { grid-column: 1; grid-row: 1; }
.fg-card--rich .fg-card-lead { grid-column: 2; grid-row: 1; min-width: 0; }
.fg-card--rich .fg-card-foot { grid-column: 1 / -1; grid-row: 2; display: grid; gap: 6px; }
.fg-card--slim { grid-template-columns: 1fr; background: #eef2f1; border-color: #dfe7e5; }
.fg-card-media { aspect-ratio: 1/1; border: 1px solid #e7eeee; border-radius: 8px; background: var(--fg-soft); overflow: hidden; }
.fg-card-media > img, .fg-card-media > video, .fg-detail-hero > img, .fg-detail-hero > video { width: 100%; height: 100%; object-fit: cover; }
.fg-detail-gallery { position: relative; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.fg-detail-gallery .fg-gallery-item { position: relative; flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; }
.fg-detail-gallery .fg-gallery-item > img { width: 100%; height: 100%; object-fit: cover; }
.fg-detail-gallery figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 4px 7px; border-radius: 6px; background: rgba(20,35,34,.72); color: #fff; font-size: 11px; line-height: 1.25; }
.fg-gallery-dots { position: sticky; right: 10px; bottom: 8px; align-self: end; display: flex; gap: 5px; margin: 0 10px 8px -86px; pointer-events: none; }
.fg-gallery-dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.62); box-shadow: 0 0 0 1px rgba(20,35,34,.2); }
.fg-gallery-dots span.active { background: #fff; }
.fg-fallback-media { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 2px; background: #fff; }
.fg-fallback-media img { width: 60%; height: 52%; object-fit: contain; }
.fg-fallback-media span { color: var(--fg-muted); font-size: 11px; font-weight: 800; }
.fg-card-body { min-width: 0; display: grid; gap: 6px; }
.fg-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.fg-pill { display: inline-flex; width: fit-content; border: 1px solid #cfe3e3; border-radius: 999px; padding: 2px 8px; color: var(--fg-accent-dark); font-size: 12px; font-weight: 850; }
.fg-semantic-pill { display: inline-flex; width: fit-content; margin-left: 5px; border: 1px solid #a8c9c9; border-radius: 999px; padding: 2px 7px; color: var(--fg-accent-dark); background: #f2f9f9; font-size: 11px; font-weight: 800; }
.fg-primary-pill { display: inline-flex; width: fit-content; margin-left: 5px; border: 1px solid #a8c9c9; border-radius: 999px; padding: 2px 7px; color: var(--fg-accent-dark); background: #f2f9f9; font-size: 11px; font-weight: 800; letter-spacing: .025em; }
.fg-distance { color: var(--fg-muted); font-size: 13px; font-weight: 760; white-space: nowrap; }
.fg-card h3 { margin: 0; font-size: 17px; }
.fg-card p { margin: 0; color: var(--fg-muted); font-size: 13px; }
.fg-card-description { line-height: 1.42; color: var(--fg-text) !important; }
.fg-card-read-more { justify-self: start; min-height: 30px !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: var(--fg-accent-dark) !important; text-decoration: underline; text-underline-offset: 2px; }
.fg-meta-line { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--fg-text); font-size: 13px; font-weight: 740; }
.fg-card-actions { display: flex; gap: 8px; align-items: center; }
.fg-card button { min-height: 38px; border: 1px solid #cddbdc; border-radius: 8px; background: #fff; color: var(--fg-ink); padding: 0 12px; font-weight: 760; font-size: 14px; cursor: pointer; }
.fg-card button:first-of-type:not(.fg-card-settings), .fg-detail-close { border-color: var(--fg-ink); background: var(--fg-ink); color: #fff; }
.fg-card-settings { width: 38px; padding: 0 !important; }
.fg-card-debug { margin-top: 4px; font-size: 11px; font-family: monospace; color: var(--fg-muted); border-top: 1px dashed var(--fg-line); padding-top: 4px; }
.fg-loading, .fg-error, .fg-empty { padding: 14px; border: 1px solid var(--fg-line); border-radius: 10px; color: var(--fg-muted); background: #fff; }

/* ---------- Detail-Drawer ---------- */
.fg-detail-drawer { position: fixed; inset: 0; width: 100%; max-width: 100%; z-index: 90; pointer-events: none; opacity: 0; overflow: hidden; transition: opacity .16s ease; }
.fg-detail-drawer.is-open { pointer-events: auto; opacity: 1; }
.fg-drawer-backdrop { position: absolute; inset: 0; border: 0; background: rgba(9,40,45,.42); cursor: pointer; }
.fg-drawer-panel { position: absolute; top: 0; right: 0; width: min(760px,100%); height: 100%; overflow: auto; background: #fff; box-shadow: -18px 0 40px rgba(9,40,45,.22); transform: translateX(18px); transition: transform .16s ease; padding: 16px; }
.fg-detail-drawer.is-open .fg-drawer-panel { transform: translateX(0); }
.fg-detail-close { position: sticky; top: 0; z-index: 2; margin-left: auto; display: block; min-height: 40px; padding: 0 14px; }
.fg-detail-loading { padding: 24px; color: var(--fg-muted); }
.fg-detail-hero { aspect-ratio: 16/10; margin-top: 10px; border: 1px solid var(--fg-line); border-radius: 10px; background: var(--fg-soft); overflow: hidden; }
.fg-marketing-media { position: relative; overflow: hidden; background: var(--fg-soft); }
.fg-marketing-media--video { background: #0f2029; }
.fg-marketing-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0f2029; }
.fg-marketing-video-fallback { display: block; width: 100%; height: 100%; object-fit: cover; }
.fg-marketing-video[hidden] { display: none !important; }
.fg-marketing-video-fallback[hidden] { display: none !important; }
.fg-marketing-media-disclosure {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: linear-gradient(180deg, rgba(9,40,45,0) 0%, rgba(9,40,45,.72) 40%, rgba(9,40,45,.88) 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
  pointer-events: none;
}
.fg-marketing-media-disclosure-left,
.fg-marketing-media-disclosure-right {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.fg-marketing-media-disclosure-right {
  margin-left: auto;
  text-align: right;
  justify-content: flex-end;
}
.fg-detail-content { display: grid; gap: 12px; margin-top: 12px; }
.fg-detail-panel { padding: 16px; background: #fff; border: 1px solid var(--fg-line); border-radius: 10px; }
.fg-detail-panel p, .fg-detail-panel li { color: var(--fg-text); }
.fg-detail-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.fg-detail-public-link { color: var(--fg-accent-dark); font-size: 14px; font-weight: 760; text-decoration: underline; text-underline-offset: 2px; }
.fg-detail-copy { align-self: auto; margin-top: 0; }
.fg-detail-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.fg-detail-list[hidden] { display: none !important; }
.fg-muted-small { color: var(--fg-muted); font-size: 13px; }
.fg-event-description-lead, .fg-event-description-full { line-height: 1.55; white-space: pre-line; }
.fg-event-description-more { margin-top: 10px; }
.fg-event-description-more summary { width: fit-content; color: var(--fg-accent-dark); font-weight: 760; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.fg-event-description-more[open] summary { margin-bottom: 10px; }
.fg-mia-summary-label { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin-bottom: 6px !important; }
.fg-mia-summary-label span { color: var(--fg-muted); font-size: 11px; }
.fg-mini-map { height: 220px; border: 1px solid var(--fg-line); border-radius: 8px; background: #e5ece7; overflow: hidden; }
.fg-header-actions { margin-top: 0; }

/* ---------- Fußzeile (Impressum/Nutzungsbedingungen/Datenschutz) ---------- */
.fg-footer { display: grid; grid-template-columns: 1fr 1.1fr 1.1fr; gap: 16px; padding-top: 18px; padding-bottom: 22px; background: var(--fg-ink); color: #fff; }
.fg-footer h2 { font-size: 15px; margin: 0 0 4px; }
.fg-footer p { color: #c4d4d6; margin: 5px 0 0; font-size: 12px; line-height: 1.35; }

.leaflet-container { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .fg-search-row { grid-template-columns: 1fr 1fr; }
  .fg-discovery-compact { grid-template-columns: 1fr; }
  .fg-events { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fg-category-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .fg-category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .fg-category { min-height: 84px; }
}
@media (max-width: 720px) {
  .fg-marketing-media-disclosure {
    gap: 8px;
    padding: 6px 8px;
    font-size: 10px;
  }
  .fg-marketing-media-disclosure-left,
  .fg-marketing-media-disclosure-right {
    max-width: 48%;
  }
  .fg-header { position: static; padding-top: 8px; padding-bottom: 8px; }
  .fg-brand-taglin-wrap { gap: 3px; }
  .fg-brand-taglin { display: inline; white-space: normal; }
  .fg-header-sponsors { gap: 6px; min-height: 28px; }
  .fg-header-sponsor { padding: 3px 7px; max-width: 100%; }
  .fg-header-sponsor img { height: 18px; max-width: 82px; }
  .fg-brand-logo { height: 38px; }
  .fg-product { padding-top: 10px; }
  .fg-search-panel { padding: 12px 12px 10px; }
  .fg-search-row { grid-template-columns: 1fr; gap: 8px; }
  .fg-location-field { grid-column: 1 / -1; }
  .fg-location-field > span { display: none; }
  .fg-location-row { gap: 5px; }
  .fg-location-row input { flex-basis: 0; }
  .fg-location-row #fg-location-input { max-width: 42vw; }
  .fg-location-row .fg-geo-btn, .fg-location-row .fg-theme-btn, .fg-location-row .fg-loc-toggle { width: 38px; height: 38px; }
  .fg-sort-cycle-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 66px; height: 38px !important; padding: 0 8px; }
  .fg-sort-compact-field { display: none; }
  .fg-location-feedback:empty { display: none; }
  .fg-discovery-compact { grid-template-columns: 1fr; gap: 6px; margin-top: 6px; }
  .fg-compact-card { padding: 5px 8px; }
  .fg-compact-head--time { margin-bottom: 2px; }
  .fg-compact-head--radius { margin-bottom: 2px; }
  .fg-discovery-value { font-size: 15px; }
  .fg-compact-card--radius .fg-discovery-value { font-size: 18px; }
  .fg-slider-wrap { height: 34px; margin-top: 0; }
  .fg-range { height: 34px; }
  .fg-range::-webkit-slider-runnable-track { height: 34px; }
  .fg-range::-moz-range-track { height: 34px; }
  .fg-range::-webkit-slider-thumb { margin-top: 6px; }
  .fg-slider-scale { font-size: 10px; gap: 4px; margin-top: 3px; }
  .fg-compact-card--time #fg-time-scale { display: none; }
  .fg-time-preset-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 5px; }
  .fg-time-chip { min-height: 26px; padding: 0 8px; font-size: 11px; }
  .fg-daytime-head { grid-template-columns: 1fr auto auto; }
  .fg-daytime-head .fg-discovery-kicker { grid-column: 1 / -1; }
  .fg-daytime-head strong { font-size: 12px; }
  .fg-compact-card--radius { padding-top: 5px; padding-bottom: 5px; }
  .fg-compact-card--radius .fg-slider-wrap { margin-top: -1px; }
  .fg-cat-set--standard { gap: 8px; margin-top: 4px; }
  .fg-cat-set--standard .fg-category { min-height: 64px; gap: 1px; padding: 3px 3px; }
  .fg-cat-set--standard .fg-category img { width: 58px; height: 40px; }
  .fg-cat-set--standard .fg-category .fg-func-img { width: 58px; height: 42px; }
  .fg-cat-set--standard .fg-category.fg-func[data-func="brand"] .fg-func-img { width: 50px; height: 36px; }
  .fg-cat-set--standard .fg-category .fg-cat-label,
  .fg-cat-set--standard .fg-category > span:not(.fg-neu):not(.fg-soon) { font-size: 11px; line-height: 1.05; }
  .fg-cat-set--standard .fg-category .fg-soon { top: 4px; right: 5px; }
  .fg-events, .fg-footer { grid-template-columns: 1fr; }
  /* Mobile Card: oben 50/50 Bild + Infos, darunter restliche Infos volle Breite */
  .fg-card--rich { grid-template-columns: 1fr 1fr; }
  .fg-card--rich .fg-card-lead h3 { font-size: 15px; }
  .fg-map-wrap { position: sticky; top: 0; z-index: 6; }
  .fg-map { height: 200px; max-height: 38vh; }
  .fg-drawer-panel { padding: 12px; }
  .fg-pref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fg-pref-option { min-height: 48px; font-size: 14px; }
}
/* ===== ATOMIC-DESIGN-BASIS (2026-08-18) ===== */
.fg-category img { width: 46px; height: 30px; object-fit: cover; border-radius: 10px; }
.fg-category .fg-func-img { width: 40px; height: 40px; object-fit: contain; border-radius: 0; }
.fg-category.fg-func-future .fg-func-img { width: 68px; height: 68px; object-fit: contain; }
.fg-category.fg-func-future span { font-size: 12px; }
.fg-loc-suggestion { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: transparent; cursor: pointer; font-size: 13px; color: inherit; }
.fg-loc-suggestion:hover { background: rgba(0,167,173,.12); }
.fg-card h3 { font-size: 15px; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.fg-map-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 10px; border: 1px solid var(--fg-line, #d7dee3); border-radius: 8px; background: #fff; cursor: pointer; font-size: 13px; }
.fg-map-toggle:hover { border-color: var(--fg-accent, #00a7ad); }
.fg-category-span-hide .fg-category span { display: none; }
.fg-category img { width: 56px; height: 36px; object-fit: cover; border-radius: 12px; }
.fg-category .fg-func-img { width: 46px; height: 30px; }
.fg-category.fg-func-future .fg-func-img { width: 72px; height: 46px; }

/* ===== ATOMIC: Button-Bilder mind. doppelt so groß (PO-Review 22:09) ===== */
.fg-category-grid { gap: 12px; }
.fg-category { padding: 8px 6px; }
.fg-category img { width: 112px; height: 70px; object-fit: cover; border-radius: 12px; }
.fg-category .fg-func-img { width: 96px; height: 62px; }
.fg-category.fg-func-future .fg-func-img { width: 150px; height: 96px; }
@media (max-width: 760px) { .fg-category img { width: 108px; height: 68px; } .fg-category .fg-func-img { width: 92px; height: 60px; } .fg-category.fg-func-future .fg-func-img { width: 132px; height: 84px; } }

/* ===== Design-Ebenen (Standard/Atomic) – NUR Darstellung =====
   Entkopplung 2026-08-19: fg_theme steuert allein die Sichtbarkeit der Design-Ebene.
   Such-/Standort-/Kategorie-/Radius-/Ranking-/Karten-/Detallogik ist theme-frei.
   Der Ortsblock ist gemeinsames UI (nicht mehr theme-gesplittet). */
.fg-cat-set--atomic { display: none; }
body.fg-theme-atomic .fg-cat-set--standard { display: none; }
body.fg-theme-atomic .fg-cat-set--atomic { display: grid; }

/* ---------- Standard-Ebene: Icons (ohne separaten Text) ---------- */
.fg-cat-set--standard { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }
.fg-cat-set--standard .fg-category img { width: 56px; height: 40px; object-fit: contain; }
.fg-cat-set--standard .fg-category .fg-emoji { font-size: 22px; }
.fg-cat-set--standard .fg-category span { font-size: 12px; }
@media (max-width: 900px) {
  .fg-cat-set--standard { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* ---------- Atomic-Ebene: Bild + separat gelabelte Beschriftung ---------- */
body.fg-theme-atomic .fg-cat-set--atomic { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
/* S.1.2: Atomic-Hauptbuttons kompakter – Icon unverändert (90×64 / mobil 88×62),
   Button enger ums Icon, weniger Leerraum. */
body.fg-theme-atomic .fg-cat-set--atomic .fg-category {
  padding: 4px 3px; border: 0; background: transparent; box-shadow: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
body.fg-theme-atomic .fg-cat-set--atomic .fg-category img { width: 90px; height: 64px; object-fit: contain; display: block; }
body.fg-theme-atomic .fg-cat-set--atomic .fg-cat-label {
  display: block; margin-top: 3px; text-align: center;
  font-family: var(--fg-font); font-size: 13px; font-weight: 650; font-style: normal;
  line-height: 1.2; letter-spacing: .01em; color: var(--fg-text);
  -webkit-font-smoothing: antialiased;
}
body.fg-theme-atomic .fg-cat-set--atomic .fg-cat-label-line { display: block; }
/* Funktions-Buttons (Einstellungen/Rakete/Tickets): nur Bild */
body.fg-theme-atomic .fg-cat-set--atomic .fg-category.fg-func img { width: 84px; height: 62px; }

/* Atomic mobil: verbindlich 3 Spalten × 3 Reihen – auch bei ≤480px (keine 2-Spalten-Rückstufung) */
@media (max-width: 760px) {
  .fg-result-orientation { top: 0; min-height: 30px; padding: 4px 9px; z-index: 24; box-shadow: 0 3px 10px rgba(0,0,0,.10); }
  .fg-result-orientation .fg-orientation-media { display: none; }
  body.fg-theme-atomic .fg-cat-set--atomic { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
  body.fg-theme-atomic .fg-cat-set--atomic .fg-category img { width: 88px; height: 62px; }
  body.fg-theme-atomic .fg-cat-set--atomic .fg-cat-label { font-size: 12px; }
}

/* ===== Eventkarte V1 PO-Korrekturen (I): Standard-Design + Card-Shell ===== */
/* S.1.2: Standard-Hauptbuttons kompakter – Icon-Größe unverändert (72×52),
   Button enger ums Icon (Padding ~1 mm), weniger Leerraum, weiterhin bedienbar. */
.fg-cat-set--standard .fg-category {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 4px;
}
.fg-cat-set--standard .fg-category img { width: 72px; height: 52px; object-fit: contain; border-radius: 0; }
.fg-cat-set--standard .fg-category .fg-cat-label,
.fg-cat-set--standard .fg-category > span:not(.fg-neu):not(.fg-soon) {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.12;
  color: var(--fg-text);
}
.fg-cat-set--standard .fg-category .fg-cat-label-line { display: block; }
.fg-cat-set--standard .fg-category .fg-func-img { width: 76px; height: 58px; object-fit: contain; border-radius: 0; }

/* Z.6C: Die innere Raketen-/Funktionsgrafik darf keine eigene Interaktionsfläche bilden.
   Long-Press, Tap und Pointer-Handling laufen über den Button-Container. */
.fg-category .fg-func-img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.fg-card--v1 {
  grid-template-columns: minmax(112px, 47%) minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}
.fg-card-left,
.fg-card-right {
  min-width: 0;
  display: grid;
  gap: 7px;
}
.fg-card-left { align-content: start; }
.fg-card-right { align-content: start; }
.fg-card--v1 .fg-card-media { width: 100%; aspect-ratio: 4 / 3; }
.fg-card-organizer { font-size: 12px; line-height: 1.25; }
.fg-card-detail { align-self: end; margin-top: 2px; }
.fg-card-term,
.fg-card-address { line-height: 1.28; }
.fg-card-slot { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.fg-pill-plus {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8e4e5;
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 850;
}
@media (min-width: 1061px) {
  .fg-card--v1 { grid-template-columns: minmax(118px, 46%) minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .fg-modal-panel { width: calc(100vw - 32px); max-width: calc(100vw - 32px); }
  .fg-drawer-panel { width: 100%; max-width: 100%; }
  .fg-card--v1 { grid-template-columns: minmax(128px, 48%) minmax(0, 1fr); }
  .fg-card--v1 .fg-card-media { aspect-ratio: 4 / 3; }
  .fg-card--v1 h3 { font-size: 15px; line-height: 1.22; }
  .fg-card-detail { padding: 0 8px; font-size: 13px; }
  .fg-card--marketing-reveal,
  .fg-marketing-reveal-shell,
  .fg-marketing-reveal-body,
  .fg-card--marketing-reveal.is-static .fg-marketing-reveal-shell { min-height: 214px; }
  .fg-card--marketing-reveal:not(.is-revealed) .fg-marketing-reveal-shell,
  .fg-card--marketing-reveal:not(.is-revealed) .fg-marketing-reveal-body { min-height: 108px; }
  .fg-marketing-reveal-body { padding: 14px; }
  .fg-marketing-reveal-body h3 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .fg-marketing-video { animation: none !important; transition: none !important; }
}

/* ===== Eventkarte V1 PO-Korrekturen (I): kompaktere Detailmodule ===== */
.fg-detail-panel h3 { margin: 0 0 8px; }
.fg-module-preis,
.fg-module-termine {
  padding: 10px 12px;
}
.fg-module-preis p,
.fg-module-termine p,
.fg-module-termine ul,
.fg-module-quelle p,
.fg-module-quelle ul,
.fg-module-veranstalter p {
  margin-top: 0;
  margin-bottom: 7px;
}
.fg-module-termine .fg-map-toggle { margin-top: 5px; }
.fg-module-quelle {
  padding: 11px 12px;
  font-size: 13px;
}
.fg-module-quelle h3 { font-size: 14px; }

/* ===== Eventbilder V1 (J): Symbolfoto-Kennzeichnung ===== */
.fg-symbol-media {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--fg-soft);
}
.fg-symbol-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.fg-symbol-media figcaption {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  width: fit-content;
  max-width: calc(100% - 12px);
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(20, 28, 30, .78);
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
}
.fg-detail-hero .fg-symbol-media figcaption {
  font-size: 11px;
  bottom: 8px;
  left: 8px;
}

/* ===== S.2: Nachladen / Fortschritt / Floating „Zurück zur Suche“ ===== */
.fg-pagination {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 2px 0 26px;
  text-align: center;
}
.fg-progress {
  margin: 0;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 760;
  min-height: 16px;
}
.fg-load-more {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--fg-ink);
  border-radius: 8px;
  background: var(--fg-ink);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.fg-load-more:hover { background: var(--fg-accent-dark); }
.fg-load-more:disabled { opacity: .6; cursor: default; }
.fg-end-hint {
  margin: 0;
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 34em;
}
.fg-back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(220,231,230,.9);
  background: rgba(255,255,255,.82);
  color: var(--fg-ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(9,40,45,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  -webkit-user-select: none;
  user-select: none;
}
.fg-back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.fg-back-top:hover { background: rgba(255,255,255,.96); }
@media (max-width: 720px) {
  .fg-back-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}


@media (prefers-reduced-motion: reduce) {
  .fg-card--marketing-reveal .fg-marketing-reveal-shell,
  .fg-card--marketing-reveal .fg-marketing-reveal-body,
  .fg-back-top {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Z.4C.2 Final overrides ===== */
#fg-time-scale { display: none !important; }
@media (max-width: 720px) {
  body.fg-theme-standard .fg-header { padding-top: 8px !important; padding-bottom: 8px !important; }
  body.fg-theme-standard .fg-product { padding-top: 10px !important; }
  body.fg-theme-standard .fg-search-panel { padding: 12px 12px 10px !important; }
  body.fg-theme-atomic .fg-header { padding-top: 10px !important; padding-bottom: 10px !important; }
  body.fg-theme-atomic .fg-product { padding-top: 18px !important; }
  body.fg-theme-atomic .fg-search-panel { padding: 14px !important; }
  .fg-cat-set--standard { gap: 8px !important; margin-top: 4px !important; }
  .fg-cat-set--standard .fg-category {
    min-height: 64px !important;
    gap: 1px !important;
    padding: 3px 3px !important;
  }
  .fg-cat-set--standard .fg-category img { width: 58px !important; height: 40px !important; }
  .fg-cat-set--standard .fg-category .fg-func-img { width: 58px !important; height: 42px !important; }
  .fg-cat-set--standard .fg-category.fg-func[data-func="brand"] .fg-func-img { width: 50px !important; height: 36px !important; }
  .fg-cat-set--standard .fg-category .fg-cat-label,
  .fg-cat-set--standard .fg-category > span:not(.fg-neu):not(.fg-soon) {
    font-size: 11px !important;
    line-height: 1.05 !important;
  }
}

@media (max-width: 760px) {
  .fg-country-indicator { font-size: 11px; padding: 2px 8px; }
  .fg-country-indicator-flag { width: 16px; height: 11px; }
}

/* FG-PREF.1A Popover & Sticky Styles */
.fg-category-submenu-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; pointer-events: none; }
.fg-category-submenu-backdrop { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.18); pointer-events: auto; }
.fg-category-submenu { position: absolute; pointer-events: auto; z-index: 10000; background: #ffffff; border: 1px solid var(--fg-line); border-radius: 12px; padding: 8px 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.fg-category-submenu-title { font-size: 11px; font-weight: 800; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 2px; border-bottom: 1px solid var(--fg-line); }
.fg-category-submenu-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.fg-subtaste-btn { border: 1px solid var(--fg-line); border-radius: 8px; background: #f8faf9; padding: 7px 12px; font-size: 12px; font-weight: 750; color: var(--fg-ink); cursor: pointer; transition: all 0.15s ease; }
.fg-subtaste-btn:hover { background: #eef5f4; border-color: var(--fg-teal); }
.fg-subtaste-btn.is-active { background: var(--fg-teal); color: #ffffff; border-color: var(--fg-teal); }
.fg-result-orientation { position: sticky; top: 0; z-index: 20; margin: 8px 0 4px; padding: 6px 12px; border-top: 1px solid var(--fg-line); border-bottom: 1px solid var(--fg-line); background: rgba(245,250,249,0.96); backdrop-filter: blur(8px); color: var(--fg-ink); font-size: 12px; font-weight: 900; letter-spacing: .06em; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }

/* FG-PREF.1B Button Stability, Multi-Select Popover & Atomic Badge */
.fg-category, .fg-category * {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}
.fg-category {
  position: relative !important;
  transform: none !important;
  transition: border-color .14s ease, box-shadow .14s ease !important;
}
.fg-category img, .fg-category .fg-func-img {
  transform: none !important;
  transition: none !important;
  pointer-events: none !important;
}
.fg-category:active, .fg-category:focus, .fg-category:hover {
  transform: none !important;
}

/* Atomic Indicator Badge [1], [2] */
.fg-category-badge {
  position: absolute;
  top: 3px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--fg-accent, #00a7ad);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 8px rgba(0, 167, 173, 0.6);
  pointer-events: none;
  z-index: 10;
  animation: fg-badge-glow 2s infinite ease-in-out;
}

@keyframes fg-badge-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 167, 173, 0.5); }
  50% { box-shadow: 0 0 12px rgba(0, 167, 173, 0.9); }
}

/* Submenu Overlay & Buttons */
.fg-category-submenu-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9999; pointer-events: auto; }
.fg-category-submenu-backdrop { position: fixed; inset: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.22); pointer-events: auto; backdrop-filter: blur(2px); }
.fg-category-submenu { position: absolute; pointer-events: auto; z-index: 10000; background: #ffffff; border: 1.5px solid var(--fg-accent, #00a7ad); border-radius: 14px; padding: 10px 12px; box-shadow: 0 12px 36px rgba(0,0,0,0.28); display: flex; flex-direction: column; gap: 8px; min-width: 180px; max-width: 90vw; }
.fg-category-submenu-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--fg-line); padding-bottom: 4px; }
.fg-category-submenu-title { font-size: 11px; font-weight: 850; color: var(--fg-ink); text-transform: uppercase; letter-spacing: 0.06em; }
.fg-category-submenu-hint { font-size: 10px; font-weight: 750; color: var(--fg-muted); }
.fg-category-submenu-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.fg-subtaste-btn { border: 1.5px solid var(--fg-line); border-radius: 9px; background: #f8faf9; padding: 8px 12px; font-size: 13px; font-weight: 800; color: var(--fg-ink); cursor: pointer; transition: all 0.14s ease; display: inline-flex; align-items: center; gap: 4px; }
.fg-subtaste-btn:hover { background: #eef5f4; border-color: var(--fg-accent); }
.fg-subtaste-btn.is-active { background: var(--fg-accent, #00a7ad); color: #ffffff; border-color: var(--fg-accent, #00a7ad); box-shadow: 0 2px 10px rgba(0, 167, 173, 0.4); }
.fg-subtaste-check { font-weight: 900; }

/* FG-PREF.1C Viewport-bound Submenu Overlay */
.fg-category-submenu-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
}
.fg-category-submenu-backdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(9, 40, 45, 0.32) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  pointer-events: auto !important;
}
.fg-category-submenu {
  position: fixed !important;
  z-index: 100000 !important;
  background: #ffffff !important;
  border: 1.5px solid var(--fg-accent, #00a7ad) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  box-shadow: 0 12px 36px rgba(0,0,0,0.3) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  max-width: 92vw !important;
  pointer-events: auto !important;
}

/* FG-UX-FILTERSTATE.1: explicit state and orientation hierarchy. */
.fg-category.active {
  border: 3px solid var(--fg-accent) !important;
  background: rgba(0,167,173,.14) !important;
  box-shadow: 0 6px 20px rgba(0,167,173,.28) !important;
}
.fg-category.has-active-subgroup:not(.active) {
  border-color: var(--fg-accent);
  box-shadow: inset 0 0 0 1px rgba(0,167,173,.20);
}
.fg-compact-card.is-filter-active,
.fg-daytime-card.is-filter-active {
  border-color: var(--fg-accent);
  box-shadow: inset 0 0 0 1px rgba(0,167,173,.18);
}
.fg-country-indicator[role="button"] { cursor: pointer; }
.fg-country-indicator.is-filter-active {
  border-color: var(--fg-accent);
  background: rgba(0,167,173,.12);
  color: var(--fg-accent-dark);
}
.fg-result-orientation[data-orientation-kind="distance"] .fg-orientation-media--fallback {
  background: linear-gradient(135deg, rgba(0,167,173,.22), rgba(246,193,64,.26));
}
.fg-best-of-orientation { display: none; }

@media (max-width: 720px) {
  :root { --fg-mobile-header-height: 70px; --fg-mobile-map-height: 200px; }
  html, body { overflow-x: clip; }
  .fg-header {
    position: sticky !important;
    top: 0;
    z-index: 80;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
    min-height: 50px;
    padding: 5px 9px !important;
  }
  .fg-brand { flex: 1 1 auto; gap: 7px; overflow: hidden; }
  .fg-brand-logo { flex: 1 1 auto; width: auto; min-width: 0; max-width: 145px; height: 34px !important; }
  .fg-brand-taglin-wrap { flex: 0 0 auto; display: flex; justify-content: center; }
  .fg-brand-taglin { display: none !important; }
  .fg-country-indicator { align-self: center; min-height: 30px; padding: 3px 7px; white-space: nowrap; }
  .fg-country-indicator-label { font-size: 10px; }
  .fg-header-actions { flex: 0 0 auto; align-items: center; gap: 5px; }
  .fg-header-actions .fg-icon-btn { width: 34px; height: 34px; min-width: 34px; }
  .fg-menu { position: fixed; top: var(--fg-mobile-header-height); z-index: 90; }
  .fg-map-wrap {
    position: sticky !important;
    top: var(--fg-mobile-header-height) !important;
    z-index: 50 !important;
    padding: 2px 0 4px;
    box-shadow: 0 5px 12px rgba(9,40,45,.10);
  }
  .fg-map { height: var(--fg-mobile-map-height) !important; max-height: none !important; }
  .fg-events { overflow: visible; }
  .fg-result-orientation {
    grid-column: 1 / -1;
    position: sticky !important;
    top: calc(var(--fg-mobile-header-height) + var(--fg-mobile-map-height) + 4px) !important;
    z-index: 45 !important;
    min-height: 30px;
    margin: 0 0 4px;
    padding: 5px 10px;
    background: rgba(245,250,249,.98);
    box-shadow: 0 3px 9px rgba(9,40,45,.12);
  }
  .fg-result-orientation .fg-orientation-media { display: none !important; }
  .fg-best-of-orientation {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    letter-spacing: 0;
    font-size: 10px;
  }
  .fg-best-of-orientation strong { font-size: 10px; }
  .fg-best-of-orientation button {
    min-height: 25px;
    padding: 0 8px;
    border: 1px solid var(--fg-accent);
    border-radius: 999px;
    background: #fff;
    color: var(--fg-accent-dark);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
  }
}
