
/* === Fonts === */
@font-face {
  font-family: 'Satoshi-Medium';
  src: url('font/Satoshi-Medium.woff2') format('woff2'),
       url('font/Satoshi-Medium.woff') format('woff'),
       url('font/Satoshi-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi-Regular';
  src: url('font/Satoshi-Regular.woff2') format('woff2'),
       url('font/Satoshi-Regular.woff') format('woff'),
       url('font/Satoshi-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

/* === Root variables === */
:root {
  --main-color: #36312B;
}

/* === HTML / Body === */
body {
  margin: 0;
  height: 100%;
  background: #FFFFFF;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);

}

html {
    background-color: #FFFFFF;
}

/* === Safe-Area Wrapper === */
.safe-area-wrapper {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* === Category List Scroll === */
.categoryList {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* === Filter Sticky Wrapper === */
.filter-sticky {
  position: sticky;
  top: env(safe-area-inset-top); /* Safe-Area Notch */
  z-index: 10;
  background-color: #FFFFFF;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* === Inner Container für Flex-Layout === */
.filter-container {
  display: flex;
   align-items: center;   
   justify-content: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .filter-sticky {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .filter-container {
    width: 100%;
    display: flex;

   align-items: unset;   
   justify-content: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .safearea-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.4rem;
  background-color: #FFFFFF; /* gewünschte Hintergrundfarbe */
  z-index: 9998;
  pointer-events: none; /* blockiert keine Klicks */
}
}
/* === Buttons === */
.btn {
  background-color: #FFFFFF;
  border-color: var(--main-color);
  border-width: 1px;
  border-style: solid;
  color: var(--main-color);
  padding: 0.5rem;
  border-radius: 0;
}
.btn:hover {
  color: #36312B;
  outline-color: var(--main-color);
  outline-width: 1px;
  outline-style: solid;
  background-color: #F5F2F0;
}
.btn:active, .btn.active {
  color: var(--main-color);
  outline-color: var(--main-color);
  outline-width: 1px;
  outline-style: solid;
  background-color: #F5F2F0;
}

.btn-primary {
  background-color: var(--main-color);
  color: #FFFFFF;
  border: 0;
  padding: 0.5rem;
  border-radius: 0;
}
.btn-primary:hover {
  background-color: #2D2923;
  color: #FFFFFF;
  outline: 0;
}
.btn-primary:focus {
  background-color: #221E19;
  color: #FFFFFF;
  outline: 0;
}
.btn-primary:active, .btn-primary.active {
  background-color: #221E19 !important;
  color: #FFFFFF !important;
  outline: 0;
}

/* === Divider === */
.divider {
  height: 1px;
  background-color: #FFFFFF;
  margin: auto;
  margin-top: 1rem;
  max-width: 93%;
}

/* === Filter Chips === */
.filter-chip {
  cursor: pointer;
  background-color: #FFFFFF;
  color: #7E7A76;
  padding: 8px 8px;
  font-family: 'Satoshi-Regular', sans-serif;
  border-radius: 0;
  font-size: 1rem;
  margin: 5px;
}
.filter-chip:hover {
  background-color: #F5F2F0;
}
.filter-chip.active {
  outline-color: var(--main-color);
  outline-width: 1px;
  outline-style: solid;
  color: var(--main-color);
}

/* === Cards === */
.card {
  border: none;
  margin: auto;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 0;
  cursor: pointer;
  padding-bottom: 100%;
  border-radius: 0;
}
.card-img-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Lazy Images */
img.lazy {
  display: block;
  width: 100%;
  height: auto;
}

/* Mobile Card Fix */
@media (max-width: 576px) {
  .card-img-top {
    max-width: 100%;
  }
}

/* === Icons & Info Items === */
.icon-category {
  width: 1.2rem;
  height: 1.2rem;
}

.icon {
  width: 1rem;
  height: 1rem;
  margin: 0 !important;
}

.info-item-category {
  text-align: start;
  font-size: 1.4rem;
}
.info-item-start {
  text-align: start;
  font-size: 1.2rem;
}
.info-item-end {
  text-align: end;
  font-size: 1rem;
}
.info-item-location {
  text-align: end;
  font-size: 0.8rem;
}

/* === Close Button === */
.close {
  color: #36312B;
  opacity: 1;
  font-size: 1.5rem;
}

/* === Modal Fullscreen Fix === */
.modal-dialog.modal-fullscreen {
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
}

.modal-content {
  height: 100%;
  border: none;
  border-radius: 0;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Modal Header ohne Border */
.modal-header {
  border-bottom: none;
  position: sticky;
  background: #FFFFFF;
}

.back-arrow {
  color: #36312B;
  cursor: pointer;
  font-size: 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
}

/* === Modal Scroll / Pull-to-Refresh blockieren (iOS sicher) === */
body.modal-open {
  overflow: hidden;          /* Hintergrund scrollen verhindern */
}

.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  overflow-y: auto;                  /* Scroll innerhalb Modal erlauben */
  -webkit-overflow-scrolling: touch; /* sanftes Scrollen iOS */
  overscroll-behavior-y: contain;    /* Pull-to-Refresh verhindern */
  position: relative;
}

.modal-body img {
  max-width: 100%;
  max-height: 80%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* === Responsive Layout Fixes === */
@media (min-width: 1200px) {
  .container {
    max-width: 800px;
  }
  .filter-container {
    text-align: center;
  }
  .divider {
    max-width: 70%;
  }
}