@charset "UTF-8";
.fabcity-map-wrapper *,
.fabcity-map-wrapper *::before,
.fabcity-map-wrapper *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.fabcity-map-wrapper img {
  max-width: 100%;
  display: block;
}
.fabcity-map-wrapper [type=button], .fabcity-map-wrapper [type=submit], .fabcity-map-wrapper button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  background: none;
  color: black;
}
.fabcity-map-wrapper [type=button]:hover, .fabcity-map-wrapper [type=button]:active, .fabcity-map-wrapper [type=button]:focus, .fabcity-map-wrapper [type=submit]:hover, .fabcity-map-wrapper [type=submit]:active, .fabcity-map-wrapper [type=submit]:focus, .fabcity-map-wrapper button:hover, .fabcity-map-wrapper button:active, .fabcity-map-wrapper button:focus {
  background: none !important;
}
.fabcity-map-wrapper input,
.fabcity-map-wrapper select {
  font: inherit;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f5f7fa;
  color: #1f2937;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f5f7fa;
  color: #1f2937;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

.map-layout {
  position: relative;
  overflow: hidden;
  z-index: 20;
}

.fabcity-map {
  flex: 1;
  height: var(--fabcity-map-height, 90vh);
  position: relative;
  overflow: hidden;
}
.fabcity-map .mapboxgl-map {
  width: 100%;
  height: 100%;
}

.fabcity-map-static-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  content: "";
  background-color: transparent;
  z-index: 10;
}

/* =============================
   TOPSHEET (Filter + Kategorien oben)
============================= */
.topsheet {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  flex-direction: row-reverse;
  align-items: center;
}
@media (max-width: 1024px) {
  .topsheet {
    flex-direction: column-reverse;
  }
}
.topsheet {
  background: none;
  /* =============================
     FILTERS (filters.php)
  ============================= */
}
.topsheet .sidebar__header {
  width: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (max-width: 1024px) {
  .topsheet .sidebar__header {
    width: 100%;
  }
}
.topsheet .sidebar__header .search-wrapper {
  position: relative;
}
.topsheet .sidebar__header .tag-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 0.4rem;
  padding: 1rem 0.75rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 41, 55, 0.25) transparent;
  background: #ffffff;
}
.topsheet .sidebar__header .tag-input::-webkit-scrollbar {
  width: 6px;
}
.topsheet .sidebar__header .tag-input::-webkit-scrollbar-thumb {
  background: rgba(31, 41, 55, 0.25);
  border-radius: 999px;
}
.topsheet .sidebar__header .tag-input input {
  border: none;
  outline: none;
  padding: 0;
  padding-left: 0.15rem;
  margin: 0;
  transform: translateY(-1px);
  flex: 1;
  min-width: 120px;
  font-size: 0.9rem;
  background: transparent;
}
.topsheet .sidebar__header .tag-input input::placeholder {
  opacity: 0.8;
}
.topsheet .sidebar__header .tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #ffdaff;
  color: #a549a5;
  font-size: 0.8rem;
}
.topsheet .sidebar__header .tag-chip button {
  all: unset;
  cursor: pointer;
  font-weight: 700;
  opacity: 0.8;
}
.topsheet .sidebar__header .tag-chip button:hover {
  opacity: 1;
}
.topsheet .sidebar__header .tag-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: none;
  flex-direction: column;
  z-index: 20;
}
.topsheet .sidebar__header .tag-suggestion-item {
  padding: 0.5rem;
  cursor: pointer;
}
.topsheet .sidebar__header .tag-suggestion-item:hover {
  background-color: rgba(255, 218, 255, 0.5);
}
.topsheet {
  /* =============================
     CATEGORY FILTER (oben)
  ============================= */
}
.topsheet .category-filter {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 1024px) {
  .topsheet .category-filter {
    display: none;
  }
}
.topsheet .category-filter li {
  padding: 0.25rem 0.5rem;
  border-radius: 2rem;
  background: #ffffff;
  font-size: 0.85em;
}
.topsheet .category-filter li.active {
  background: #ffdaff;
  color: #a549a5;
}
.topsheet .category-filter li:hover {
  cursor: pointer;
}
@media (max-width: 768px) {
  .topsheet .category-filter {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }
}

/* =============================
   BOTTOMSHEET (Liste + Detail unten)
============================= */
.bottomsheet {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 2rem;
  top: 6rem;
  min-height: 0;
  height: var(--sheet-height);
  z-index: 11;
  width: calc(100% - 2rem);
  display: flex;
  flex-direction: column;
  padding-bottom: 4rem;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  margin-top: 4rem;
  transform: translateY(var(--collapse-offset));
  transition: transform 0.4s ease;
}
@media (max-width: 1024px) {
  .bottomsheet {
    bottom: 0;
    margin-top: 0;
    overflow: hidden;
    padding-bottom: 0rem;
  }
}
.bottomsheet__collapsible {
  height: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
@media (max-width: 1024px) {
  .bottomsheet__collapsible {
    overflow: hidden;
  }
}
.bottomsheet {
  /* Desktop: optional wieder wie rechte Sidebar */
}
@media (min-width: 1024px) {
  .bottomsheet {
    top: 1rem;
    bottom: auto;
    right: 1rem;
    left: auto;
    width: 420px;
    height: 100%;
  }
}
.bottomsheet__collapsible {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.bottomsheet_wrapper__collapsible {
  transition: transform 0.4s ease;
}
.bottomsheet .bottomsheet__collapsible {
  max-height: var(--sheet-height);
  padding-bottom: 0rem;
}
.bottomsheet .bottomsheet_wrapper__collapsible {
  padding: 1rem;
}
.bottomsheet .bottomsheet__handle {
  color: white;
}
.bottomsheet.is-collapsed {
  transition: transform 0.4s ease;
}
.bottomsheet.is-collapsed.is-list {
  transform: translateY(calc(var(--collapse-offset) + 1.5rem));
}
.bottomsheet.is-collapsed .bottomsheet_wrapper__collapsible {
  overflow: hidden;
  transition: transform 0.4s ease;
}
.bottomsheet.is-collapsed .sidebar__list {
  overflow: hidden;
}
.bottomsheet.is-collapsed {
  /* ✅ collapsed: Map bedienbar, weil Body keine Touches frisst */
}
.bottomsheet {
  /* =============================
     LIST
  ============================= */
}
.bottomsheet .sidebar__list {
  flex: 1;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .bottomsheet .sidebar__list {
    min-height: var(--sheet-height);
    max-height: var(--sheet-height);
    padding-bottom: 4rem;
  }
}
.bottomsheet .sidebar__list {
  overflow-y: auto;
  background: #ffffff;
  margin-bottom: 20vh;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}
.bottomsheet .sidebar__list::-webkit-scrollbar {
  width: 6px;
}
.bottomsheet .sidebar__list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.bottomsheet .sidebar__list-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  z-index: 5;
  background: #0f1d3a;
  border-radius: 1rem;
}
.bottomsheet .sidebar__list-header .sidebar__controls svg {
  color: #ffffff;
  fill: #ffffff;
}
.bottomsheet #resultCount, .bottomsheet .detail__headline {
  font-size: 1rem;
  color: white;
  font-weight: 400;
}
.bottomsheet .sidebar__list-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0 1rem 0;
  overflow-y: auto;
  min-height: 0;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 41, 55, 0.3) transparent;
  /* Chrome, Edge, Safari */
}
.bottomsheet .sidebar__list-content::-webkit-scrollbar {
  width: 6px;
}
.bottomsheet .sidebar__list-content::-webkit-scrollbar-track {
  background: transparent;
}
.bottomsheet .sidebar__list-content::-webkit-scrollbar-thumb {
  background: rgba(31, 41, 55, 0.3);
  border-radius: 999px;
}
.bottomsheet .sidebar__list-content::-webkit-scrollbar-thumb:hover {
  background: rgba(31, 41, 55, 0.5);
}
.bottomsheet {
  /* =============================
     CONTROLS
  ============================= */
}
.bottomsheet .sidebar__list-header .sidebar__controls .sidebar__close {
  display: none;
}
.bottomsheet .detail .sidebar__list-header .sidebar__controls .sidebar__close {
  display: block;
}
.bottomsheet .sidebar__controls {
  display: flex;
  gap: 0.5rem;
}
.bottomsheet .sidebar__controls .sidebar__toggle {
  transform: rotate(180deg);
}
.bottomsheet .sidebar__controls button svg {
  max-width: 1rem;
  width: 1rem;
}
.bottomsheet.is-collapsed .sidebar__controls .sidebar__toggle {
  transform: rotate(0deg);
}
.bottomsheet .sidebar__toggle,
.bottomsheet .sidebar__close {
  width: 2rem;
  height: 2rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bottomsheet {
  /* =============================
     CARD
  ============================= */
}
.bottomsheet .card {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.bottomsheet .card__image-wrapper {
  width: 4rem;
  height: 4rem;
  overflow: hidden;
}
.bottomsheet .card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bottomsheet .card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bottomsheet .card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}
.bottomsheet .card__category {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #6b7280;
}
.bottomsheet .card__tags {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.bottomsheet .card__tags[hidden] {
  display: none;
}
.bottomsheet .card__tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #ffdaff;
  color: #a549a5;
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}
.bottomsheet #card-template {
  display: none;
}

/* Flex-Fixes wie vorher (optional behalten) */
.sidebar__list-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.sidebar__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

@media (max-width: 1024px) {
  .bottomsheet .sidebar__list {
    margin-bottom: 2rem !important;
  }
}
/* =========================
ADMIN LAYOUT
========================= */
.fabcity-admin {
  padding: 20px;
  background: #f5f7fa;
}

.fabcity-admin__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 1024px) {
  .fabcity-admin__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
CARDS
========================= */
.fabcity-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* =========================
FORM
========================= */
.fabcity-form {
  margin-top: 10px;
}

.fabcity-field {
  margin-bottom: 18px;
}

.fabcity-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1f2937;
}

.fabcity-help {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

/* =========================
INPUTS
========================= */
.fabcity-form input:not([type=checkbox]):not([type=radio]),
.fabcity-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.25s ease;
}
.fabcity-form input:not([type=checkbox]):not([type=radio]):focus,
.fabcity-form textarea:focus {
  outline: none;
  border-color: #FF93FF;
  box-shadow: 0 0 0 2px rgba(255, 147, 255, 0.15);
}

/* =========================
CHECKBOX
========================= */
.fabcity-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.fabcity-checkbox input[type=checkbox] {
  accent-color: #FF93FF;
  width: 16px;
  height: 16px;
  margin: 0;
}

/* =========================
TAGS
========================= */
.fabcity-tag {
  padding: 0.25em 0.5em;
  border-radius: 1em;
  background: #ffdaff;
  color: #a549a5;
  font-size: 11px;
  margin-right: 4px;
  margin-bottom: 4px;
  display: inline-block;
}

.fabcity-tags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* =========================
BUTTONS
========================= */
.fabcity-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.fabcity-btn-secondary:hover {
  border-color: #FF93FF;
  color: #FF93FF;
}

.fabcity-btn-danger {
  background: #fff0f0;
  border-color: #ffb3b3;
  color: #b30000;
}
.fabcity-btn-danger:hover {
  background: #ffdede;
}

/* =========================
AUTOCOMPLETE
========================= */
.fabcity-autocomplete {
  position: relative;
  max-width: 25rem;
}

.fabcity-autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: none;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}
.fabcity-autocomplete-results::-webkit-scrollbar {
  width: 6px;
}
.fabcity-autocomplete-results::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.fabcity-autocomplete-option {
  padding: 8px 12px;
  cursor: pointer;
}
.fabcity-autocomplete-option:hover {
  background: #ffdaff;
}

/* =========================
PROJECT LIST
========================= */
.fabcity-project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fabcity-project {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}
.fabcity-project:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* IMAGE */
.fabcity-project__media {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f7fa;
  flex-shrink: 0;
}
.fabcity-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fabcity-project__placeholder {
  width: 100%;
  height: 100%;
  background: #e5e7eb;
}

/* MAIN */
.fabcity-project__main {
  flex: 1;
}

.fabcity-project__name {
  font-weight: 600;
}

.fabcity-project__category {
  font-size: 12px;
  color: #6b7280;
}

.fabcity-project__tags {
  margin-top: 4px;
}

/* ACTIONS */
.fabcity-project__actions {
  display: flex;
  gap: 8px;
}

.fabcity-btn {
  background: #FF93FF !important;
  padding: 0.25em 0.5em !important;
  color: #ffffff !important;
  border: 1px solid #FF93FF !important;
}
.fabcity-btn:hover, .fabcity-btn:active, .fabcity-btn:focus {
  background: #FF93FF !important;
  padding: 0.25em 0.5em !important;
  color: #ffffff !important;
  border: 1px solid #FF93FF !important;
}

.fabcity-btn-danger {
  background: #ffffff !important;
  padding: 0.25em 0.5em !important;
  color: #FF93FF !important;
  border: 1px solid #FF93FF !important;
}
.fabcity-btn-danger:hover, .fabcity-btn-danger:active, .fabcity-btn-danger:focus {
  background: #ffffff !important;
  padding: 0.25em 0.5em !important;
  color: #FF93FF !important;
  border: 1px solid #FF93FF !important;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.card strong {
  display: block;
  font-weight: 600;
}
.card small {
  color: #6b7280;
}
.card .card__tags_wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  grid-column: span 2;
}

.is-detail {
  padding: 0;
}

.detail {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  max-height: var(--sheet-height);
}
.detail__header {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 6;
  background: #ffffff;
}
.detail .detail_card__content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}
.detail .detail_card__content::-webkit-scrollbar {
  width: 6px;
}
.detail .detail_card__content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.detail .detail_card__content {
  border: 1px solid;
  border-radius: 1rem;
  border-color: #0f1d3a;
  padding: 1rem;
  margin-top: 1rem;
}
.detail__content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.detail__image-wrapper {
  display: flex;
  height: 210px;
  background: #8b8b8b;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 18px;
}
.detail__image-wrapper img {
  height: 100%;
  object-fit: cover;
}
.detail__name {
  font-size: 1.4rem;
  font-weight: 500;
  font-style: italic;
}
.detail__category {
  font-size: 0.95rem;
  color: #1f2937;
}
.detail__relation {
  font-size: 0.85rem;
  font-style: italic;
  color: #999;
}
.detail__description {
  font-size: 0.95rem;
  line-height: 1.6;
}
.detail__link {
  display: inline-block;
  font-weight: 600;
  color: #ffffff;
  background: #3f6fd9;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  width: fit-content;
}
.detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.detail__tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #ffdaff;
  color: #a549a5;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}
.detail__close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
}

.marker {
  cursor: pointer;
  --fabcity-marker-color: #FF93FF;
}
.marker svg {
  width: 28px;
  height: 28px;
  color: var(--fabcity-marker-color, #FF93FF);
  opacity: 0.8;
  transition: all 0.25s ease;
}
.marker:hover svg {
  transform: scale(1.2);
  opacity: 1;
}

.marker--static {
  pointer-events: none;
  cursor: default;
}
.marker--static svg {
  pointer-events: none;
}

.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.mt-1 {
  margin-top: 1rem;
}

.text-muted {
  color: #6b7280;
}

/*# sourceMappingURL=main.css.map */
