/* Standard-Resets */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
  background: #121212;
  max-width: 100%;
  overflow-x: hidden;          /* Keine horizontale Scrollbar */
  overscroll-behavior-x: none; /* Unterbindet "Gummi-Effekt" auf Mobile */
  scrollbar-gutter: stable both-edges;
}

body {
  display: flex;
  flex-direction: column;
  color: #9b9b9be0;
}



/* --- HEADER & DREI ZEILEN --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1003;
  transform: translateY(0);
  transition: transform .7s cubic-bezier(.23,1,.32,1);
  display: block; 
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.header--hidden {
  transform: translateY(-100%);
}


@font-face {
  font-family: 'Geist-Black';
  src: url('/fonts/Geist-v1.4.01/webfonts/Geist-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Geist-SemiBold';
  src: url('/fonts/Geist-v1.4.01/webfonts/Geist-SemiBold.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Geist-Regular';
  src: url('/fonts/Geist-v1.4.01/webfonts/Geist-Regular.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Geist-Medium';
  src: url('/fonts/Geist-v1.4.01/webfonts/Geist-Medium.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
}




/* 
   -----------------------------------------------------
   1) Der Container für die neuen Filter-Buttons (Zeile 2)
   -----------------------------------------------------
*/
.filter-buttons-line {
  /* 
     Du kannst hier z. B. einen Hintergrund, Padding usw. definieren,
     ohne dass es deine 1. Zeile (Kategorien) beeinflusst.
  */
  background-color: #121212;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 2px #282828;
  /* Wenn du magst, position: static; oder margin-top... */
  margin-top: 20px; /* Damit es unter dem Header sitzt */
}



/* Inneres, das zum Horizontal-Slider wird */
.filter-buttons-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap; 
  -ms-overflow-style: none;  /* Alte IE-Einstellung */
  scrollbar-width: none;     /* Firefox */
}
.filter-buttons-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari: Scrollbar ausblenden */
}

/*
   2) Die Buttons selbst
*/
.filter-button {
  display: inline-flex;    /* nebeneinander, Breite nach Inhalt */
  align-items: center; 
  gap: 0.5rem;             /* Abstand zwischen Icon und Text */
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  background-color: #2c272d;
  color: #fff;
  border: none;
  transition: background-color 0.3s ease;
  font-size: 1rem;         /* Schriftgröße anpassen */
}
.filter-button:hover {
  background-color: #3e363f; 
}

/*
   3) Icon + Text im Button
*/
.filter-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.filter-button-icon i {
  font-size: 1.2rem;
}
.filter-button-text {
  white-space: nowrap; 
}

/*
   4) Die Select-Boxen, wenn sie aufklappen:
   => Du hast schon .hidden, .filter-select usw.
   => Kannst du hier genauso stylen, wenn du Unterschiede zur ersten Zeile willst
*/
.filter-select-dropdowns {
  position: relative; /* Damit du später ggf. absolute Popups machen kannst */
  margin-top: 0.5rem; /* Leichter Abstand zu den Buttons */
  z-index: 1010;
}

/* z.B. .filter-select könnte man anpassen */
.filter-select {
  width: 100%; 
  background-color: #121212; 
  color: #fff;
  border: 1px solid #ffffff; 
  border-radius: 8px;
  padding: 8px;
  /* usw. */
}







.header-line {
  display: flex;
  gap: 0.2rem;
  align-items: center;
  justify-content: space-between;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
  padding-left: 0;
  padding-right: 0;
  position: fixed;
}

.contain-slider {
  position: sticky; /* oder sticky, falls nötig */
  top: 0;
  transition: transform .5s ease-in-out;
  will-change: transform;
  z-index: 999;
}

.contain-slider.contain-slider--hidden {
  transform: translateY(-400%);
  z-index: 1;
}


@media (min-width: 480px) {
  .header-line {
    justify-content: center;
    gap: 0px;
  }
}

/*erste zeile*/
.top-line {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  width: 100%;
  z-index: 1003;
  display: flex;
  align-items: center;
  justify-content: center; /* sorgt für Trennung der Items */
  background-color: #121212;
  margin-top: 0;
  height: 60px;
  padding-right: 10px;
  box-shadow: 0 4px 12px #121212;
  z-index: 2000;
}

@media (min-width: 480px) {
  .top-line {
    justify-content: center;
    gap: 0px;
  }
}




/* --- BURGER-BUTTON & FAVORITES-ICON --- */
.burger-button {
  background-color: transparent;
  border: 1px solid white;
  border-radius: 50px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #333;
  transition: 0.3s ease;
  flex: 0 0 auto;
}

.burger-button:hover {
  gap: 0.2rem;
  scale: 0.9;
}

.burger-icon {
  width: 20px;
  height: 20px;
  background-image: url("icon/filter.svg"); /* Pfad anpassen */
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transition: 0.3s ease;
  scale: 1.1;
}

.icons-top {
  flex-wrap: nowrap;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.logo-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;           /* Falls kein Rahmen gewünscht */
  background-color: transparent; /* Oder eine Hintergrundfarbe deiner Wahl */
  cursor: pointer;
  padding: 0;
  margin-left: .6rem;
}

/* Entferne hier evtl. die fixen Maße für den Button, wenn der Text unter dem Icon mehr Platz benötigt */
.logo-icon {
  width: 46px;
  height: 39px;
  color: black;
  background-color: white; /* Farbe des Icons */
  /* Hier das Icon als Mask verwenden – passe den Pfad zum Icon an: */
  mask: url('icon/logo.svg') no-repeat center;
  -webkit-mask: url('icon/logo.svg') no-repeat center;
}

.login-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;           /* Falls kein Rahmen gewünscht */
  background-color: transparent; /* Oder eine Hintergrundfarbe deiner Wahl */
  cursor: pointer;
  padding: 0;
  margin-right: .45rem;
  margin-left: .2rem;
}

/* Entferne hier evtl. die fixen Maße für den Button, wenn der Text unter dem Icon mehr Platz benötigt */
.login-icon {
  width: 34px;
  height: 34px;
  background-color: white; /* Farbe des Icons */
  /* Hier das Icon als Mask verwenden – passe den Pfad zum Icon an: */
  mask: url('icon/user.svg') no-repeat center;
  -webkit-mask: url('icon/user.svg') no-repeat center;
}





/* Header-Favoriten-Icon */
.favorites-icon {
  width: 30px;
  height: 30px;
  background-color: white; /* Standardfarbe */
  mask: url("icon/heart-line.svg") no-repeat center;
  -webkit-mask: url("icon/heart-line.svg") no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.favorites-icon.active {
  background-color: red;
  mask: url("icon/heart-full.svg") no-repeat center;
  -webkit-mask: url("icon/heart-full.svg") no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
  transform: scale(0.9);
}

/* Favoriten-Icon in Karten & Modal */
.favorite-toggle {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: white; /* Standardfarbe */
  mask: url("icon/heart-line.svg") no-repeat center;
  -webkit-mask: url("icon/heart-line.svg") no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  margin-left: 0.5rem;
}

.favorite-toggle.active {
  background-color: red;
  mask: url("icon/heart-full.svg") no-repeat center;
  -webkit-mask: url("icon/heart-full.svg") no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
  transform: scale(0.9);
}





/* --- SLIDER-CONTAINER --- */
.slider-container {
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  gap: 16px;
  scrollbar-width: none; /* Firefox Scrollbar ausblenden */
  -ms-overflow-style: none; /* IE Scrollbar ausblenden */
  align-items: center;
  padding-top: 5px;
  padding-left: 0px;
}

.slider-container2 {
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  gap: 16px;
  scrollbar-width: none; /* Firefox Scrollbar ausblenden */
  -ms-overflow-style: none; /* IE Scrollbar ausblenden */
  align-items: center;
  padding-bottom: 10px;
  padding-left: 10px;
  margin-top: 10px;
}

@media (min-width: 480px) {
  .slider-container2 {
    max-width: fit-content;
  }
}


.slider-container::-webkit-scrollbar {
  display: none; /* Chrome Scrollbar ausblenden */
}

.slider-container2::-webkit-scrollbar {
  display: none; /* Chrome Scrollbar ausblenden */
}

.slider-container .filter-group {
  flex-wrap: nowrap;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  padding-bottom: 8px;
}

/* --- FILTER-GROUPS (wie gehabt) --- */
.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-group.icons-only {
  justify-content: flex-start;
}

/* Unsichtbare Checkbox */
.filter-group.icons-only .icon-filter input[type="checkbox"] {
  display: none;
}

/* Icon-Container mit runder Box */
.icon-filter {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}


/* Icon selbst (Font-Icon) */
.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid transparent;
  
  background-color: #100f0f;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Icon mittig zentrieren */
.icon-wrapper i {
  font-size: 1.5rem; /* GrÃ¶ÃŸe des Icons */
  color: rgb(255, 255, 255);
  transition: color 0.2s ease, transform 0.2s ease;
  transform: scale(1.3);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%; /* Stellt sicher, dass das Icon die gesamte HÃ¶he des Containers nutzt */
  width: 100%;
  text-align: center;
}

/* für einzelauswahl 'radio' statt 'checkbox' verwenden */

/* Checkbox aktiv -> Icon Wrapper + Icon fÃ¤rben */
.filter-group.icons-only .icon-filter input[type="checkbox"]:checked + .icon-wrapper {
  border-color: #702d89;
  background-color: #ffffff;
  box-shadow: none;
}

.filter-group.icons-only .icon-filter input[type="checkbox"]:checked + .icon-wrapper i {
  color: rgb(0, 0, 0);
  transform: scale(1.2);
}

/* Icon-Beschriftung */
.icon-label {
  font-family: 'Geist-SemiBold';
  margin-top: 4px;
  font-size: 0.8rem;
  color: #ffffff;
  text-align: center;
}



/* ---------------------------------- */
/* MOBILE-MENU (ausklappbares Filter) */
/* ---------------------------------- */
/* Du kannst es z. B. als Overlay oder als seitliches Panel machen */

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background-color: #121212;
  box-shadow: -3px 0 5px rgba(0,0,0,0.2);
  padding: 20px;
  transition: right 0.3s ease-in-out;
  z-index: 999; /* Ã¼ber allem */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1004;
  box-sizing: border-box;
}

.mobile-menu h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: white;
}

/* Falls du ein offenes MenÃ¼ willst, togglest du z. B. eine Klasse .open */
.mobile-menu.open {
  right: 0; /* sichtbar */
}



/* Style fÃ¼r den Close-Button */
.close-button {
  display: flex;
  align-items: center; /* Vertikale Zentrierung */
  justify-content: flex-end; /* Inhalte am Ende ausrichten */
  height: 40px;
  padding: 0 10px; /* Horizontale InnenabstÃ¤nde */
  border: none;
  background-color: transparent;
  cursor: pointer; /* Cursor Ã¤ndert sich beim Hover */
}

/* Style fÃ¼r das Close-Icon */
.close-icon {
  width: 25px;
  height: 25px;
  background-image: url("icon/close.svg"); /* Pfad anpassen */
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  margin-right: 0px; /* Abstand zwischen Icon und Text */
  transition: 0.2s ease;
  scale: 1.1;
}




/*
.reset-button {
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
}

.reset-button:hover {
  background-color: #cc0000;
}
*/


/* ------------------------------
   Persons
-------------------------------- */
.persons-container {
  position: relative;
  display: inline-block;
  margin-left: -12px;
}

.custom-dropdown-header {
  /* Standard-Zustand (keine ausgewählten Personen) */
  background-color: #121212;
  color: #fff;
  border: 1px solid #ffffff;
  border-radius: 18px;
  font-family: 'Geist-Medium';
  font-size: 0.85rem; 
  padding: 6px 12px; /* Standard-Padding */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  gap: 6px;
  transition: padding 0.3s ease; /* Damit das Umschalten nicht springt */
  margin-left: 15px;
}

/* Wenn Avatare drin sind => Klasse "with-icons" */
.custom-dropdown-header.with-icons {
  padding: 3.7px 12px; /* Weniger vertical padding */
}

/* Pfeil-Symbol (immer sichtbar) */
.dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #fff; /* Pfeil nach unten */
  margin-top: 2px; /* minimaler Versatz */
}

.selected-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Avatare im Header (klein) */
.selected-icons img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* Dropdown-Body: Transition für Fade-In/Out */
.custom-dropdown-body {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #121212f6;
  border: 1px solid #ffffff;
  border-radius: 18px;
  padding: 8px;
  z-index: 1010;
  margin-top: 10px;
  opacity: 0;
  pointer-events: none;  /* Maus-Ereignisse blocken */
  transform: translateY(-5px); 
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease-in-out, visibility 0.3s;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
}

/* Offen: Fade-In */
.custom-dropdown-body.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}


.custom-dropdown-body label {
  /* Damit jede Person wie ein kleines "Kärtchen" wirkt */
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  min-width: 60px; /* optional */
  margin: 0;       /* wir regeln Abstand über gap */
}



.custom-dropdown-body input[type="checkbox"] {
  /* Standard-Checkbox ausblenden, wenn du rein über das Icon steuern willst */
  display: none; 
}

/* Rundes "Bild" statt normaler Checkbox: */
.custom-dropdown-body .person-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 4px; /* Abstand zum Label-Text */
  /* Optional: border: 2px solid transparent; */
  /* Optional: transitions für Hover-Effekte */
  transition: transform 0.2s ease;
}

.custom-dropdown-body label:hover .person-icon {
  transform: scale(0.95);
}

/* Person-Name unter dem Icon */
.custom-dropdown-body .person-label {
  font-size: 0.85rem;
  color: #ffffff;
  text-align: center;
}

/* Beispiel: Markiere ausgewählten Status durch Rahmen oder Overlay */
.custom-dropdown-body input[type="checkbox"]:checked + .person-icon {
  outline: 2px solid #702d89;  /* z.B. blaues Outline */
  outline-offset: -2px;
}








/* ------------------------------
   Services
-------------------------------- */
.services-container {
  flex: 1;
  text-align: center;
  margin-left: -1rem;
  padding-left: 10px;
}

/* ------------------------------
   Time
-------------------------------- */
.time-container {
  flex: 1;
  text-align: center;
  margin-left: -1rem;
  padding-left: 10px;
}

.open-container {
  flex: 1;
  text-align: center;
  margin-left: -1rem;
  padding-left: 10px;
  padding-right: 10px;
}


.services-container button {
  padding: 8px 16px;
  padding-left: 34px;
  border: 1px solid #ffffff;
  border-radius: 18px;
  background-color: #121212;
  color: #ffffff;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.5s, background-image 0s;
  background-image: url("icon/deliver.svg");
  background-color: #121212;
  background-repeat: no-repeat;
  background-position: left 10px center;
  background-size: 19px;
  font-family: 'Geist-Medium';
  
}

.time-container button {
  padding: 8px 16px;
  padding-left: 33px;
  border: 1px solid #ffffff;
  border-radius: 18px;
  background-color: #121212;
  color: #ffffff;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.5s, background-image 0s;
  background-image: url("icon/time.svg");
  background-color: #121212;
  background-repeat: no-repeat;
  background-position: left 10px center;
  background-size: 16px;
  font-family: 'Geist-Medium';
}

.open-container button {
  padding: 8px 16px;
  padding-left: 33px;
  border: 1px solid #ffffff;
  border-radius: 18px;
  background-color: #121212;
  color: #ffffff;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.5s, background-image 0s;
  background-image: url("icon/clock.svg");
  background-color: #121212;
  background-repeat: no-repeat;
  background-position: left 10px center;
  background-size: 16px;
  font-family: 'Geist-Medium';
}

#servicesButton.active {
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  background-image: url("icon/deliver2.svg");
  border-color: #702d89;
}

#timeButton.active {
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  background-image: url("icon/time2.svg");
  border-color: #702d89;
}

#openNowButton.active {
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  background-image: url("icon/clock2.svg");
  border-color: #702d89;
}






/* ---------------- Hilfsklasse --------------------------- */
.sr-only{
  position:absolute!important;
  width:1px!important; height:1px!important;
  padding:0!important; margin:-1px!important;
  overflow:hidden!important; clip:rect(0 0 0 0)!important;
  white-space:nowrap!important; border:0!important;
}

/* ------------ Grundlayout der Container ---------------- */
.price-container,
.diet-container{
  flex:1;
  display:flex;
  align-items:center;
  padding:0px;
  margin-left: -6px;
  gap:.5rem;
  max-width:450px;
}
.city-container {
  flex:1;
  display:flex;
  align-items:center;
  gap:.5rem;
  max-width:450px;
  margin-right: .5rem;
}

/* -------------- Sichtbares Feld (.dropdown-display) ----- */
.dropdown-display{
  position:relative;
  width:100%;
  cursor:pointer;
  user-select:none;

  /* Aus den alten select-Regeln übernommen --------------- */
  padding:10px 14px;
  padding-right:40px;                /* Platz für Pfeil   */
  border:1px solid #ffffff;
  border-radius:18px;
  background:#121212;
  color:#ffffff;
  font:12px 'Geist-SemiBold', sans-serif;
  transition:.4s;
}

/* Spezialisierungen (Preis & Diet hatten leicht andere Werte) */
.price-container .dropdown-display,
.diet-container  .dropdown-display{
  padding:8px;
  padding-right:30px;
  font-family:'Geist-Medium', sans-serif;
}

/* Aktiver Zustand, wenn ein Wert ≠ "" gewählt wurde ------- */
.dropdown-display.selected{
  background:#ffffff;
  color:#121212;
  border-color:#702d89;
}

/* Pfeil als Pseudo-Element -------------------------------- */
.dropdown-display::after{
  content:"";
  position:absolute; inset-block:0;
  margin:auto 0;
  right:14px;
  width:10px; height:6px;
  background:url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center;
}

/* Pfeil invertieren, wenn Feld ausgewählt ----------------- */
.dropdown-display.selected::after{
  background-image:url("icon/pfeil2.svg");
}

/* ---------------- Bottom-Sheet Dropdown ----------------- */
.custom-dropdown-container{
  position:fixed; inset-inline:0; bottom:0;
  z-index:9999;
  height:50vh; max-height:80vh;
  background:#121212;
  border-top-left-radius:1rem;
  border-top-right-radius:1rem;
  box-shadow:0 -2px 8px rgba(255, 255, 255, 0.3);
  overflow-y:auto; -webkit-overflow-scrolling:touch;
  transform:translateY(100%);
  transition:transform .3s ease;
  display:none;
}
@media (max-width: 768px) {
  .custom-dropdown-container {
    height: 75vh;
  }
}

.custom-dropdown-container.slide-up {
  transform: translateY(0);
}

.custom-dropdown-container.slide-down {
  transform: translateY(100%);
}

/* Dropdown-Einträge -------------------------------------- */
.custom-dropdown-item {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
}

.custom-dropdown-item:last-child {
  border-bottom: none;
}

.selection-circle {
  flex: 0 0 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid #702d89;
  display: inline-block;
  box-sizing: border-box;
}

.selection-circle.selected {
  background: #702d89;
}

.dropdown-display::after {
  content: "";
  position: absolute;
  inset-block: 0;
  margin: auto 0;
  right: 14px;
  width: 10px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center;
}

.dropdown-display.selected::after {
  /* gleiche SVG, nur dunkel – dadurch kein “weißer Pfeil auf Weiß” mehr */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23121212'/%3E%3C/svg%3E");
}





/* MAIN => fÃ¼llt den Rest und kann scrollen */
main {
  padding-top: 12rem; 
  flex: 1;           /* Wenn du flexbox verwendest */
  overflow-y: auto;  /* Damit man scrollen kann */
  box-sizing: border-box;
}



.persons-line {
  /* NICHT mehr fixed, kein z-index nÃ¶tig */
  position: static;
  display: flex;
  justify-content: center;
  background-color: #121212;  /* Falls du einen Hintergrund mÃ¶chtest */
  padding-top: 5px;
}

.slider-line {
  position: static;
  display: flex;
  white-space: nowrap;
  background-color: #121212; /* Falls du willst */  
}

/* Container fÃ¼r Restaurant-Cards (Grid) */
.restaurant-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  row-gap: 30px;
  max-width: 90%;
  align-items: center;
  justify-items: center;
  margin: 0 auto;
  padding: 30px;
}

.restaurant-list p {
  color: white;
  font-family: 'Geist-SemiBold';
  font-size: 1.2rem;
  text-align: center;
}




/* Einzelne Restaurant-Card */
/* ==== Restaurant-Card ==== */
.restaurant-card {
  position: relative;
  background-color: none;
  box-shadow: none;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s ease;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

/* ==== Slider-Container ==== */
/* Der Container begrenzt das Sichtfeld */
.imgslider-container {
  position: relative;
  overflow: hidden;      /* Bilder, die rausgescrollt werden, verschwinden */
  width: 100%;           /* oder eine feste Breite, z.B. 600px */
  max-width: 600px;      /* Beispiel */
  aspect-ratio: 16 / 9;  /* Optional */
  

  border-radius: 18px;
}

/* Der Track reiht die Bilder nebeneinander */
.imgslider-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  width: 100%;
  aspect-ratio: 16 / 9;

  /* Scrollbar ausblenden */
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE und Edge */
}
.imgslider-track::-webkit-scrollbar {
  display: none;              /* Chrome, Safari, Opera */
}


/* Optimierte Bild-Darstellung */
.imgslider-track img {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* Bild füllt den Container komplett aus, evtl. mit Zuschnitt */
  object-position: center;/* Bild wird zentriert */
  display: block;
  scroll-snap-align: start;
  scroll-snap-stop: always;  /* Verhindert das Überspringen mehrerer Slides */
  overflow-y: auto;
}



/* Dots unten (gestalte sie nach Geschmack) */
.dots-container {
  position: absolute;
  bottom: 8px;            
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.dot {
  width: 8px; 
  height: 8px;
  border-radius: 50%;
  
  background-color: rgba(255, 255, 255, 0.624);
  border: 1px solid white !important;
  cursor: pointer;
  transition: opacity 0.3s;
}
.dot.active {
  opacity: 1;
  background-color: white;
}
.dot:hover {
  opacity: 1;
  background-color: white;
}








/* Card-Infos */
.card-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* FÃ¼llt den verbleibenden Platz */
  width: 100%;
  align-content: left;
  padding-bottom: 10px;
  padding-right: 10px;
  padding-left: 10px;
  margin-top: -2.5px;
}

.card-info .restaurant-name {
  font-family: 'Geist-Black';
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  color: #ffffff;
  width: 100%;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.name-delivery-container {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  max-width: 90%;
}

.name-row {
  display: flex;
  justify-content: space-between; /* Name links, Icon rechts */
  align-items: center;            /* Vertikal zentriert */
  width: 100%;                    /* Damit sie die ganze Breite einnimmt */
  margin-top: 10px;               /* Ein bisschen Abstand zum Bild */
  margin-bottom: 5px;
}

/* Delivery-Icon */
.delivery-icon {
  width: 22px;  /* Beispiel */
  height: 22px;
  margin-left: 4px;
  object-fit: contain; /* oder cover */
}

/* Das Favoriten-Icon selbst */
.favorite-toggle {
  /* keine absolute Position mehr */
  cursor: pointer;
  width: 22px;  /* Beispiel */
  height: 22px;
  color: #ffffff; /* Standardfarbe */
  align-items: bottom;
}

/* Aktiv/Favorisiert */
.favorite-toggle.is-favorite {
  color: red; /* z.B. */

}

.restaurant-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Der Container für Person-Icon + zwei Text-Zeilen */
.person-and-details {
  display: flex;
  align-items: center;
  gap: 0.4rem; /* Abstand zwischen Bild und Text */
}

/* Personen-Icon, z.B. 50x50 */
.person-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

/* Container mit den beiden Zeilen */
.details-lines {
  display: flex;
  flex-direction: column;
  align-self: end;
}

/* Zeile 1: price usw */
.details-lines .line1 {
  font-family: 'Geist-Regular';
  font-size: 0.9rem;
  color: #a9a9a9;
}

/* Zeile 2: kategorie */
.details-lines .line2 {
  font-family: 'Geist-Regular';
  font-size: 0.9rem;
  color: #a9a9a9;
  display: -webkit-box;           /* Wichtig: display auf -webkit-box setzen */
  line-clamp: 1;
  -webkit-line-clamp: 1;          /* Anzahl der maximalen Zeilen */
  -webkit-box-orient: vertical;   /* Erforderlich für line-clamp */
  overflow: hidden;               /* Verhindert, dass der Text überläuft */
  text-overflow: ellipsis;        /* Zeigt ggf. „…“ am Ende an */
}


.details-distance {
  font-family: 'Geist-Regular';
  font-size: 0.9rem;
  color: #a9a9a9;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  width: 80px; /* oder eine andere feste Breite */
  align-self: end;
}





/* --- MODAL OVERLAY --- */
/* modal.css */

/* --- OVERLAY, der den ganzen Bildschirm abdeckt --- */
/* Modal Overlay */
/* Overlay (Scrim wird per JS stufenlos gesetzt) */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;     /* Sheet mittig begrenzen */
  align-items: flex-end;       /* von unten hochfahren */
  background: rgba(0,0,0,0);   /* JS ändert die Opacity dynamisch */
  z-index: 2003;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility 0s linear .22s;
  pointer-events: none;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity .22s ease;
  pointer-events: auto;
}

/* Bottom Sheet */
.modal-slider {
  position: relative;
  width: 100%;
  max-width: 768px;
  height: 85vh;               /* App-Feeling */
  max-height: 85vh;
  background: #121212;
  border-radius: 32px 32px 0 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  will-change: transform;
  transform: translateY(100%); /* Start off-screen */
  box-shadow: 0px 10px 80px rgba(255, 255, 255, 0.705);
  overflow: hidden;
}
.modal-slider.dragging { transition: none !important; }

/* Griff – klarer affordance */
.modal-drag-handle {
  position: relative;
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none; /* wichtig fürs Draggen */
  padding: 10px 0;
}
.modal-drag-handle::before {
  content: "";
  display: block;
  width: 76px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.722);
}
.modal-slider.dragging .modal-drag-handle::before {
  background: rgba(255,255,255,.45);
}

/* Tabs */
.modal-slider-tabs {
  display: flex;
  justify-content: space-around;
  background: #121212;
  padding: 8px 10px 10px;
}
.modal-tab {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  font-family: 'Geist-SemiBold', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  cursor: pointer;
  transition: transform .2s ease, text-decoration .2s ease;
  line-height: normal;
}

/* Content Wrapper */
.modal-slider-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  width: 100%;
  flex: 1;
  margin: 0 auto;
  overscroll-behavior: contain;
}

/* Slides */
.modal-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow-y: auto;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  color: #fff;
}



/* 
  Die bisherigen CSS-Regeln für Elemente wie .modal-header, .modal-icons-row, etc. 
  können entfernt werden, da der neue Slider diese Struktur nicht verwendet. 
  Falls einzelne "Card Info"-Regeln noch benötigt werden, können diese gezielt übernommen werden.
*/



/* --- YOUTUBE-VIDEO --- */
.modal-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #282828;
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 20px;
  margin-bottom: 0px;
  max-width: calc(100% - 40px); /* 20px links & rechts */
  flex-shrink: 0; /* Verhindert das Schrumpfen */
  min-height: 200px; /* Falls es zu klein ist, ein MindestmaÃŸ setzen */
}
.modal-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-card-info {
  width: calc(100% - 40px); /* Einheitlicher Abstand */
  padding-left: 10px;
  padding-top: 5px;
}

.person-and-details-modal {
  display: flex;
  align-items: top;
  gap: 0.4rem; /* Abstand zwischen Bild und Text */
}

.details-lines-modal {
  display: flex;
  flex-direction: column;
  align-self: end;
}

/* Zeile 1: price usw */
.details-lines-modal .line1 {
  font-family: 'Geist-Regular';
  font-size: 0.9rem;
  color: #a9a9a9;
}

/* Zeile 2: kategorie */
.details-lines-modal .line2 {
  font-family: 'Geist-Regular';
  font-size: 0.9rem;
  color: #a9a9a9;
  
}

.restaurant-image {
  width: calc(100% - 40px); /* Einheitlicher Abstand */
  
  margin: 0 auto;
  display: block;
  border-radius: 18px;
  background: #121212;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9;
  margin-bottom: 20px;
}


.modal-order-titel {
  font-family: 'Geist-SemiBold';
  color: white;
  font-size: 1.2rem;
  padding: 0px 20px;
  padding-top: 20px;
  width: calc(100% - 40px); /* Einheitlicher Abstand */
}

/* --- BESTELLZUSAMMENFASSUNG (Platzhalter) --- */
.order-summary {
  font-family: 'Geist-Medium';
  padding: 0px 20px;
  padding-bottom: 10px;
  background: #121212;
  border-radius: 8px;
  color: #a9a9a9;
  margin-top: -15px;
  margin-bottom: 0px;
  width: calc(100% - 40px);
}

/* Entfernt Standard-Margen und -Aufzählungszeichen */
.order-summary ul {
  margin: 0;
  padding: 0 20px;
}

/* Li-Elemente übernehmen Schriftart und Farbe, optional mit etwas Abstand */
.order-summary li {
  padding: 2px 0;
}

.order-item {
  font-family: 'Geist-Medium';
  font-size: 1rem;
  color: #e8e8e8;
  text-align: left;
  background: #121212;
  padding: 10px;
  padding-top: 0px;
  border-radius: 8px;
  width: calc(100% - 40px);
  margin: -20px auto 10px auto; /* Abstand zum Bild */
}

.order-item::before {
  content: "•";  /* Der Punkt */
  color: white;  /* Oder eine andere Farbe */
  font-size: 1.2rem;
  padding-right: 8px;  /* Abstand zum Text */
}



/* --- GOOGLE MAPS --- */
.modal-map {
  width: 100%;
  aspect-ratio: 16/9;
  background: #282828;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 20px 20px;
  max-width: calc(100% - 40px); /* 20px links & rechts */
  min-height: 200px; /* Falls es zu klein ist, ein MindestmaÃŸ setzen */
  margin-top: 20px;
}
.modal-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- UBER / LIEFERANDO-LINK --- */
.delivery-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 50px;
  border-radius: 25px;
  background: #1e1e1e;
  color: #fff;
  border: 1px solid white;
  text-align: center;
  font-family: 'Geist-SemiBold';
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
  margin: 0 auto; /* Zentrierung */
  margin-bottom: 20px;
}
/* Delivery-Icon im Button */
.delivery-button img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.delivery-button a {
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

.tested-in {
  font-family: 'Geist-Medium';
  font-size: 0.7rem;
  color: #a9a9a9;
  padding: 0 20px;
  margin-top: -15px;
  margin-bottom: 20px;
}

.restaurant-opening {
  margin-bottom: 20px;
  padding: 0px 20px;
  background: none;
}

.opening-title {
  font-family: 'Geist-SemiBold';
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #ffffff;
}

.opening-day {
  font-family: 'Geist-Medium';
  font-size: 0.9rem;
  margin: 2px 0;
  color: #a9a9a9;
}


.modal-menu {
  margin: 20px; 
  margin-top: 0px;
  padding: 10px;
  background: #121212;
  border-radius: 8px;
  color: #fff;
  margin-bottom: 20px;
}

.tested-in-menu {
  font-family: 'Geist-Medium';
  font-size: 0.7rem;
  color: #a9a9a9;
  padding: 0 30px;
  margin-top: -15px;
  margin-bottom: 4rem;
  justify-content: right !important;
}


/* --- RESPONSIVE (z.B. ab Tablet) --- */
@media (min-width: 768px) {
  .modal-content {
    border-radius: 0; /* bei groÃŸen Screens evtl. gar kein Radius */
  }
}


/* Sheet NIE zeigen, wenn Overlay nicht aktiv ist – aber KEIN transform hier! */
.modal-overlay:not(.active) .modal-slider {
  visibility: hidden;
  pointer-events: none;
}

/* Wenn aktiv: sichtbar + GPU-Hint, aber KEIN eigenes transform (JS hat Vorrang) */
.modal-overlay.active .modal-slider {
  visibility: visible;
  backface-visibility: hidden;
  will-change: transform; /* kein translateZ(0), damit wir JS-translateY nicht überschreiben */
}




/* ---------- Footer ---------- */
:root { --accent: #702d89; }

.ff-footer {
  position: fixed;
  bottom: max(0px, env(safe-area-inset-bottom));
  left: 0;
  width: 100%;
  z-index: 1002;
  pointer-events: none;               /* nur der Nav-Block klickbar */
}
.ff-footer-nav {
  pointer-events: auto;               /* klicks erlauben */
  display: flex;
  gap: 0;
  margin: 0 auto 8px;
  padding: .5rem 12px;
  max-height: 3.5rem;
  border-radius: 50px;
  background: #121212;
  box-shadow: 0 4px 12px #121212;
  max-width: fit-content;
}

/* --- Buttons: Standard = weiß auf dunkel --- */
.ff-nav-btn {
  flex: 1 1 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 0;
  background: transparent;
  border-radius: 50px;
  cursor: pointer;
  color: #fff;                        /* -> wird an Label & Icon vererbt */
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  outline: none;
}
.ff-nav-btn .ff-label {
  font-family: 'Geist-Medium';
  font-size: .8rem;
  color: inherit;                     /* erb die Button-Farbe */
}
.ff-nav-btn .ff-icon {
  width: 1.6rem;
  height: 1.6rem;
  display: inline-grid;
  place-items: center;
  color: inherit;                     /* wichtig fürs SVG */
}
.ff-nav-btn .ff-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
  fill: currentColor;                 /* <<< macht das Icon farblich „erbend“ */
  /* falls deine SVGs Striche statt Flächen sind:
  stroke: currentColor; stroke-width: 1.5;
  */
}

/* Hover (wenn NICHT aktiv): leicht aufhellen */
.ff-nav-btn:not(.active):hover {
  color: #e9e9e9;
}

/* --- Aktiver Button: umgekehrt (schwarz auf weiß) --- */
.ff-nav-btn.active {
  background: #fff;
  color: #000;                        /* wechselt Label & Icon auf schwarz */
  border: 1px solid var(--accent);
  box-shadow: 0 1px 0 var(--accent) inset; /* subtiler Top-Ring */
}

/* Fokus-Ring (Tastatur) */
.ff-nav-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(255,255,255,.5), 0 0 0 4px var(--accent);
}

/* Optional: kleineren Footer auf sehr schmalen Geräten */
@media (max-width: 360px) {
  .ff-nav-btn { padding: 6px 14px; }
  .ff-nav-btn .ff-label { font-size: .95rem; }
  .ff-nav-btn .ff-icon svg { width: 1.2rem; height: 1.2rem; }
}



/* ---------- Custom Pin ---------- */
.custom-pin {
  width: 40px;
  height: 40px;
  background: url("/foodfinderzz-pins/foodfinderzz-pin-5.svg") center/contain no-repeat;
}

/* ---------- MAP-VIEW ---------- */
#mapView, #map{           /* #mapView wenn du noch einen Wrapper hast */
  height: calc(100vh);   /* 56 px = mobile Footer-Höhe */
  width: 100%;
}

.hidden { 
  visibility: hidden !important;
  position: absolute;
  inset: 0;
}

.me-pin{
  width:22px;height:22px;border:2px solid #fff;border-radius:50%;
  background:#702d89;            /* Google-Blau */
  box-shadow:0 0 6px rgba(0,0,0,.4);
}



/* — mobiles Bottom-Sheet — */
.map-card-sheet {
  position: fixed;
  left: 0;
  bottom: 0rem;                /* Footer-Höhe (anpassen!) */
  width: 100%;
  transform: translateY(100%);
  transition: transform .55s cubic-bezier(.23,1,.32,1);
  z-index: 2600;
  padding: 12px 16px 16px;     /* innen, über Footer */
  box-sizing: border-box;
  backdrop-filter: blur(4px);
  background-color: #100f0f;
  border-radius: 24px;
}
.map-card-sheet:not(.inactive) { transform: translateY(0); }

.map-card-sheet .restaurant-card {
  max-width: 640px;
  margin: 0 auto;
}

/* Klickzone über dem Sheet */
.map-card-sheet::before {
  content:"";
  position:fixed;
  inset:0;
  top:-100vh;
}
.sheet-close{
  position:absolute;top:0px;right:0px;
  background:none;border:0;font-size:2.2rem;
  line-height:1;color:#fff;cursor:pointer;
}



/* Wrapper im Feed */
.feed-inner {
  min-height: calc(var(--vh, 1vh) * 100); /* nutzt dein vh.js */
  display: grid;
  grid-template-rows: 1fr auto; /* Liste füllt, Footer unten */
}

/* Optisches Footer-Styling */
.content-footer {
  text-align: center;
  color: #9b9b9b;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 16px;
  padding-bottom: 80px; /* Abstand zur fixen Bottom-Navigation */
}

.content-footer .footer-logo svg {
  width: 140px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
  opacity: .9;
}

/* Links sichtbar auf Dark */
.content-footer a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.3);
}
.content-footer a:hover { border-bottom-color: #fff; }
