/* @package organism_map */

:root {
  --schwarz: #000;
  --weiss: #fff;
  --farbe: #97609f;
  --gegen_farbe: #689f60;
}

/* #### DEFAULTS ### */

html {
  scroll-behavior: smooth;
}

body {
  padding: 0;
  margin: 0;
  font-family: SofiaProRegular;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

button {
  background: transparent;
  border: none;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1 {
  margin: 0.8rem 0;
}

a {
  color: var(--schwarz);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--farbe);
  text-decoration: none;
}

.farbig {
  color: var(--farbe);
}

/* #### LOS GEHT'S ### */

#main_wrap {
  height: 100dvh;
  display: grid;
  grid-template-rows: min-content 1fr;
}

/* #### MAP ### */

#the_karte .leaflet-container {
  background: white !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 2px !important;
  border: 1.5px solid;
}

.leaflet-popup-tip {
  display: none;
}

.leaflet-popup-content-wrapper {
  padding: 0 2px 1px !important;
}

.leaflet-popup {
  translate: 0 4px;
}

.leaflet-popup-content {
  font-family: SofiaProRegular !important;
  margin: 0 !important;
  line-height: 1.3;
  font-size: 0.7rem;
  text-align: center;
  cursor: pointer;
}

.leaflet-popup-content span {
  text-transform: uppercase;
  font-weight: bold;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  font-size: 0.66rem;
  line-height: 1;
}
.leaflet-overlay-pane.no_overlay > img {
  opacity: 0;
}

.leaflet-popup-close-button {
  display: none;
}

.leaflet-right:has(.leaflet-control-attribution) {
  right: unset;
  left: 0;
  scale: 0.6;
  transform-origin: left bottom;
  filter: grayscale(1);
}

.leaflet-right:has(.leaflet-control-attribution) a {
  pointer-events: none;
}

/* #### INFO ### */

#main_info {
  background: white;
  transition: opacity 0.3;
}

#main_info .info_section {
  display: grid;
  grid-template-columns: min-content 1fr min-content;
  padding: 12px;
  display: none;
}

#main_info .info_section.mitaudio {
  margin: 0 3rem;
}

#main_info h2 {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: end;
  font-size: 1.3rem;
  line-height: 1;
  gap: 0.4rem;
}

.adresse {
  font-size: 0.8rem;
  line-height: 1.1;
}

#main_info p {
  margin: 0.3rem 0 0.56rem;
  padding: 0;
  font-size: 0.8rem;
  min-height: 1lh;
}

a.info_link {
  display: block;
  background: black;
  color: white;
  padding: 16px 10px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

/* #### GEO MESSAGE ### */

#geo_location_message {
  position: fixed;
  background: white;
  z-index: 10000;
  inset: 0;
  text-align: center;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

#pos_frage {
}

.waiting_wrap {
  height: 100px;
  display: flex;
  align-items: center;
}

.waiting {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: black;
}

.with_position .waiting {
  animation: pulsieren 1.8s ease-in-out 0.5s infinite;
}

@keyframes pulsieren {
  0% {
    height: 5px;
    width: 5px;
  }
  65% {
    height: 18px;
    width: 18px;
  }
  100% {
    height: 5px;
    width: 5px;
  }
}

.geo_loc_infos {
  margin: 2rem 0;
}

.geo_loc_infos h2 {
  margin: 0.8rem 0;
}

.geo_loc_infos p {
  max-width: 49ch;
  text-align: left;
  margin: 0.4rem 0;
}

/* #### BUTTONS ### */

/* GPD MENU */

.gps_menu_btn {
  background: white;
  border: 1.5px solid black;
  padding: 8px 12px;
  margin-top: 1.4rem;
  border-radius: 0.4rem;
  color: black;
  cursor: pointer;
}

#position_center {
  display: none;
}

.with_position #position_center {
  display: block;
}

/* GPS MENU BUTTON */

#gps_menu_btn {
  position: fixed;
  top: 0.7rem;
  right: 0.6rem;
  height: 2rem;
  width: 2rem;
  background: url(../img/gps_off_on.svg) 0 / 300% no-repeat;
  transition: background-position-x 0.5s;
  z-index: 1000000;
}

.with_position #gps_menu_btn {
  background-position: 50% 0;
}

.gps_menued.with_position #gps_menu_btn,
.gps_menued #gps_menu_btn {
  background-position: 100% 0;
}

/* INFO CLOSER */

#close_info_btn {
  position: fixed;
  top: 0.7rem;
  left: 0.6rem;
  height: 2rem;
  width: 2rem;
  background: url(../img/info_close.svg) 0 / 100% no-repeat;
  transition: left 0.5s;
  z-index: 1000;
}

.welcome #close_info_btn {
  left: -2rem;
}

/* POSITION MARKER */

svg.leaflet-zoom-animated {
  display: none;
}

.with_position svg.leaflet-zoom-animated {
  display: block;
}

/* MEHR BUTTON */

.btn_wrap {
  display: grid;
  grid-template-columns: min-content 1fr;
  gap: 0.4rem;
}

.extern_link {
  height: 3rem;
  width: 3rem;
  background: black url(../img/info_i.svg) center / 52% no-repeat;
}

/* LIST BUTTON */

#list_menu_btn {
  font-family: SofiaProRegular;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 0;
  display: inline;
  line-height: 1;
  text-decoration: underline;
  text-decoration-thickness: 0.1rem;
  text-underline-offset: 0.17rem;
}

#close_list_btn {
  height: 2rem;
  width: 2rem;
  background: url(../img/info_close.svg) 0 / 100% no-repeat;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* MARKER LIST */

#marker_list {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  scale: 2;
  pointer-events: none;

  ul {
    position: relative;
    max-height: 100vh;
    overflow: scroll;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    width: min-content;
    white-space: nowrap;
    background-color: #fff;
  }
}

.list_menued #marker_list {
  opacity: 1;
  scale: 1;
  pointer-events: all;
}

#the_karte {
  transition: opacity 0.3s;
}

.list_menued #main_info,
.list_menued #the_karte {
  opacity: 0.16;
}

/* #### AUDIO CONTROLS ### */

.audio_kontrolle {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 3rem;
}

.audio_kontrolle .abspieler {
  display: inline-block;
  background: black;
  cursor: pointer;
  border-style: none;
  position: relative;
  padding: 0;
  flex-grow: 1;
}

.audio_kontrolle .abspieler::after {
  content: 'abspielen';
  display: block;
  background: black;
  color: white;
  border-style: none;
  left: 0;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: padding 0.4s ease;
}

.audio_kontrolle .abspieler.thinner::after {
  padding: 4px 10px;
}

.audio_kontrolle .abspieler.spielt::after {
  content: 'pausieren';
}

.audio_kontrolle .zeitleiste {
  height: 10px;
  width: 100%;
  top: 12px;
  padding: 0;
  background-color: white;
  border: 1px solid black;
  cursor: pointer;
  display: none;
  margin: 8px 0 0;
}

.audio_kontrolle .zeitleiste:focus {
  outline: none;
}

.audio_kontrolle .audio_zeit {
  width: 0%;
  height: 100%;
  background-color: black;
  transition: width 0.2s linear;
}

/* #### DEFAULT PAGE ### */

.page_content {
  max-width: 820px;
  justify-self: center;
  padding-bottom: 4rem;
  position: relative;
}

.back_home_link {
  width: 2rem;
  height: 2rem;
  background: url(../img/info_close.svg) 0 / 100% no-repeat;
  display: block;
  position: absolute;
  top: 1.2rem;
  left: -3.5rem;
}

/* #### FOOTER ### */

footer {
  position: fixed;
  bottom: 0;
  right: 0;
  background: white;
  z-index: 100000;
  padding: 0.1rem 0.5rem 0.2rem;
}

footer ul {
  display: flex;
  gap: 0.6rem;
  justify-content: end;
}

footer ul li a {
  font-size: 0.7rem;
  font-weight: bold;
  height: 1rem;
  display: block;
}

footer ul li.current-menu-item a {
  color: var(--farbe);
}

/* #### RESPONSIVE ### */

/* iPad */

@media only screen and (max-width: 1200px) {
}

/* HANDY */

@media only screen and (max-width: 600px) {
  #main_info .info_section.mitaudio h2 {
    display: inline;
    margin: 0 3rem;
  }

  .adresse {
    display: inline-block;
    margin: 0 3rem;
  }

  #main_info .info_section.mitaudio {
    margin: 0;
  }

  #main_info .info_section {
    padding: 8px 12px;
  }

  .page_content {
    padding: 0 1rem 4rem;
  }

  .back_home_link {
    left: 0.9rem;
  }

  .page_content h1 {
    margin-top: 3.8rem;
  }

  #marker_list {
    z-index: 1000000;

    ul {
      width: 100vw;
      height: 100dvh;
    }
  }
}

/* fin */
