@font-face {
  font-family: "Viga-Regular";
  src: url('plugins/Viga-Regular.ttf');
  src: url('plugins/Viga-Regular.ttf') format('truetype');
}
html, body, .leaflet-map {
   
    overflow-y: hidden;
    overflow-x: hidden;
}

.leaflet-popup-content-wrapper {
	max-height: 500px;
	min-height: 200px;
	overflow: auto;
	background: #ffffffe0 !important;

}

.leaflet-popup-content-wrapper .leaflet-popup-content {
	text-align: justify
}

.leaflet-popup-tip-container {
	display: none
}

.leaflet-container a.leaflet-popup-close-button {

	padding: 20px 50px 0 0 ;
	text-shadow: 0px 0px 3px #9d9c9c ;
	font: 40px/14px Tahoma, Verdana, sans-serif ;
	color: #ffffff ;
	font-weight: bold ;

}

img.googlelogo {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 50%;
}

.leaflet-control-locate a {
	background-image: url('Icons/marker.png') !important;
	background-size: 40px 48px;
}

.leaflet-bar a,
.leaflet-bar a:hover {
	background-color: #58585800 !important;
	border-bottom: 1px solid #ccc;
	width: 40px !important;
	height: 40px !important;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
}

.Legende-popup {
	background-Color: #ffffff00 !important
}

.info {
	width: 46px !important;
	height: 46px !important;
}

.leaflet-bar button {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	overflow: hidden;
	display: block;
	width: 40px !important;
	height: 40px !important;
	background-color: #58585800 !important;
}

img.infologo {
	width: 40px;
	height: 40px;

}

.leaflet-control-layers-inline .leaflet-control-layers-base input+span {
	color: #ffffff !important;
}

.leaflet-container .leaflet-control-layers-inline .leaflet-control-layers-base span {
	padding: 0px !important;
	font-size: 14px;
	background-color: #58585800 !important;
	border-radius: 5px
}

.leaflet-control-scale-line {
	line-height: 0;
	display: none;
}

.leaflet-control-layers-inline .leaflet-control-layers-base label {
	display: table !important;
	cursor: pointer;
	box-shadow: 0px 0px 0px 0px rgb(0 0 0 / 30%) !important;
	background-color: #9c2b2b00 !important;
	background-clip: padding-box;
	border: 2px solid rgba(0, 0, 0, .2);
	border-right: none;
	border-left: none;
}

.leaflet-control-layers {
	box-shadow: 0 0px 0px rgb(0 0 0 / 40%) !important;
	background: #fff;
	border-radius: 5px;
}

.leaflet-control-layers-inline {
	margin: 10px;
	padding: 10px;

}

.leaflet-bottom .leaflet-control {
	margin-bottom: 3px !important;
}

.leaflet-bar {
	box-shadow: 0 0px 0px rgba(0, 0, 0, 0.65) !important;
	border-radius: 4px;
}

.leaflet-bar button:last-of-type {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	padding: 0px !important;
}

html,
body,


.leaflet-map {
	height: 100%;
	width: 100%;

	background: #508dca;
	margin: 0px;
}

body {
	overflow-x: hidden;
}

#map.leaflet-dragging {
	cursor: grab !important
}

#map {
	cursor: url('icons/cursor.png')16 16, auto !important;
}

.leaflet-control-layers-inline .leaflet-control-layers-base label {
	display: table !important;
	cursor: pointer;
	/* box-shadow: 0px 0px 0px 0px rgb(0 0 0 / 30%)!important; */
	background-color: #9c2b2b00 !important;
	background-clip: padding-box;
	border: none !important;

}

.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: none !important;
	background-clip: padding-box;
}

.leaflet-bar a,
.leaflet-bar a:hover {
	background-color: #ffffff00 !important;

}

.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: none !important;
	background-clip: padding-box;
}


.splash {
	position: fixed;
	text-align: center;
	z-index: 1200;
	color: white;
	background-color: #508dca;
	font-family: Viga-Regular;
	width: 100%;
	height: 100%;
	line-height: 18vh;
	overflow: hidden;
}


@keyframes fadeIn {
	to {
		opacity: 1;
	}
}

.fade-in {
	opacity: 0;
	animation: fadeIn 2s ease-in forwards;
}

img.fade-in {
	position: fixed;
	top: 30%;
	left: 47.5%;
	right: auto;
}

.splash.display-none {
	position: fixed;
	text-align: center;
	z-index: -10;
	color: white;
	background-color: #508dca;
	font-family: Viga-Regular;
	width: 100%;
	height: 100%;
	line-height: 90vh;
	opacity: 0;
	transition: all 1s;
	overflow: hidden;
}

img[src="null"] {
	display: none;
}

.leaflet-control-search .search-button {
	width: 40px !important;
	height: 40px !important;
	background: url(icons/search.png) !important;
    
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: center !important;

}

.leaflet-control-search .search-button:hover {
	width: 40px !important;
	height: 40px !important;
	background-image: url(icons/searchhover.png) !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
}

.leaflet-control-search.leaflet-control {
	border-radius: 15px !important;
}

.leaflet-control-search .search-input {
	/* display: block!important; */
	position: relative !important;
	left: 0px !important;
	border-radius: 15px !important;
	background: #fff !important;
	border: 1px solid #fff !important;
	height: 37px !important;
	padding: 0 0px 0 0px !important;
	/* margin: 4px 0 4px 4px; */
}

.leaflet-control-search .search-tip {
	margin: 2px;
	padding: 2px 4px;
	display: block;
	color: #616161 !important;
	background: #fff !important;
	border-radius: 15px !important;
	text-align: center !important;
	text-decoration: none;
	margin-left: 45px !important;
	white-space: normal !important;
	/* Allow text to wrap if needed */
	max-width: 300px !important;
	/* Set a maximum width for the search tips */
	overflow: hidden !important;
	/* Hide overflow */
	text-overflow: ellipsis !important;
	/* Add ellipsis if text overflows */
}

.leaflet-control-search .search-tip:hover {
	background: #f5f5f5 !important;
}

.leaflet-control-search .search-tooltip {
	background-color: rgb(0 0 0/0%) !important;
	box-shadow: none !important;
    margin-top:2px!important;
}
/* Haupt-Container des Controls */
.leaflet-control-feature-search {
  /* Leaflet platziert Controls automatisch in der topleft-Ecke,
     daher kein top/left hier. Wenn du pixelgenau positionieren willst,
     könntest du stattdessen position:absolute; top:0; left:0; verwenden. */

  position: relative;       /* wichtig für das absolute Dropdown */
  width: 40px;              /* Anfangs nur so breit wie der Button */
  height: 40px;             /* Höhe wie der Button */
  border-radius: 10px;      /* schon im eingeklappten Zustand abgerundet */
  background: #fff;         /* weißer Hintergrund von Anfang an */
  box-shadow: 0 0 5px rgba(0,0,0,0.4);
  overflow: visible;        /* wichtig, damit das Dropdown nicht abgeschnitten wird */
  display: flex;            /* Button & Input horizontal anordnen */
  align-items: center;      /* Icon & Input vertikal zentrieren */
  justify-content: start;   /* alles linksbündig */
  padding: 0 0px;           /* kleiner Innenabstand */
  transition: width 0.3s ease;
}

/* Im aufgeklappten Zustand wird die Breite erhöht */
.leaflet-control-feature-search.expanded {
  width: 320px;  /* Passe an deine gewünschte Endbreite an */
}

/* Der Button (Icon) */
button.feature-search-icon {
    background-image: url(icons/search.png);
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    position: absolute;
    margin: 0;
    padding: 0;
}
button.feature-search-icon:hover {
  background-image: url('icons/searchhover.png');
}

/* Das Eingabefeld */
input.feature-search-input {
  border: none;
  outline: none;
  background: transparent; /* transparent, damit der weiße Hintergrund vom Container sichtbar bleibt */
  height: 30px;
  width: 0;       /* Anfangs 0 breit */
  opacity: 0;     /* unsichtbar */
  margin-left: 50px;
  transition: width 0.3s ease, opacity 0.3s ease;
  font-size: 14px;
}

/* Wenn expanded, wird das Eingabefeld breit + sichtbar */
.leaflet-control-feature-search.expanded input.feature-search-input {
  width: 220px; /* 320 - 32 Icon - etwas Puffer */
  opacity: 1;
}

/* Das Dropdown mit den Treffern */
select.feature-search-results {
  position: absolute;  
  top: 55px;         /* direkt unter dem Container */
  left: 50px;
  width: 320px;      /* exakt so breit wie der Container im expandierten Zustand */
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.4);
  background: #fff;
  padding: 5px;
  box-sizing: border-box;
  display: none;     /* wird erst eingeblendet, wenn Treffer vorhanden */
}

/* Wenn der Container expanded ist, zeige statt des Such-Icons ein Schließen-Symbol */
.leaflet-control-feature-search.expanded button.feature-search-icon {
  background-image: url('icons/close.png') !important;
}
/* Wenn das Geocoder-Control expanded ist, zeige statt des Such-Icons ein Schließen-Symbol */
.leaflet-control-geocoder.leaflet-control-geocoder-expanded button.leaflet-control-geocoder-icon {
  background-image: url('Icons/close.png') !important;
}




.basemaphint {
	position: fixed;
	z-index: 1201;
}

.basemaphint {
	position: fixed;
	left: 80px;
	bottom: 20px;
	z-index: 1000;
}

img.changebasemap {
	width: 200px;
	z-index: 1000;
}

#coordinate-search-container {

	padding: 10px;
	border: 1px solid #999;
	border-radius: 4px;
	border: 1px solid #fff;
	position: absolute;
	top: 70px !important;
	left: 40% !important;
	z-index: 1000 !important;
	font-family: Viga-Regular !important;
	background-color: rgb(81, 141, 203) !important;
	color: white !important;
	text-align: center !important;
}

#toggle-coords {
	background-image: url(Icons/koordinatensuche.webp);
	background-size: cover;
	position: absolute;
	border-style: none;
	width: 40px;
	height: 40px;
	cursor: pointer;
	border-radius: 10px;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
	top: 60px;
	left: 10px;
	z-index: 1000;
}

#toggle-coords:hover {
	background-image: url(Icons/koordinatensuchehover.webp);
}
#toggle-coords.open {
  background-image: url(Icons/close.png) !important;
}

button#go-to-coords {
	border-radius: 10px;
	font-family: Viga-Regular;
	background-color: white;
	color: #518dcb;
	border-style: none;
	height: 20px;
	cursor: pointer;
}

input#lng-input {
	border-style: none;
	padding-top: 2px !important;
	font-family: Viga-Regular;
}

input#lat-input {
	border-style: none;
	padding-top: 2px !important;
	font-family: Viga-Regular;
}

input#combined-input {
	border-style: none;
	padding-top: 2px !important;
	font-family: Viga-Regular;
}

button#go-to-coords:hover {
	color: #242a31;
}

input#searchtext22 {
	padding-left: 10px !important;
}

.logo {
	  background-image: url(Icons/logo.png);
    z-index: 1000;
    background-color: #ffffffcf;
    position: fixed;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 55px;
    background-size: cover;
    box-shadow: 0px -1px 20px 16px #ffffffdb;
}

.fixed-popup {
	position: fixed;
	right: 0;
	top: 50%;
	max-height: 90vh;
    scroll-behaviour:smooth;
	overflow-y: auto;
	transform: translateY(-50%);
	background-color: #173c5f;
	border: 1px solid #ccc;
	font-family: Arial;
	z-index: 1000;
	color: white;
	display: none;
	/* Hidden by default */
	width: 460px;
	/* Adjust width as needed */
	padding: 50px 30px 50px 30px;
}

.fixed-popup img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	/* Optional: if you want to limit the image width to the popup's width */
	max-width: 100%;
	height: auto;
	/* Keep the aspect ratio of the image */
}

.fixed-popup a {
	color: grey;
	text-decoration: none
}

.fixed-popup a:hover {
	color: white;
}

.close-popup-button {
	background: none;
	border: none;
	color: #fff;
	/* Adjust color as needed */
	font-size: 24px;
	/* Adjust font size as needed */
	padding: 5px 10px;
	/* Adjust padding as needed */
	cursor: pointer;
	margin: 0;
	/* Remove any default margins */
	/* Ensure the button is not positioned too far to the right */
	margin-right: 10px;
}

.fixed-popup-header {
	position: sticky;
	position: -webkit-sticky;
	/* For Safari compatibility */
	top: 0;
	/* Stick to the top of the .fixed-popup-content */
	z-index: 1001;
	/* Ensure it's above the content */
	background-color: #ff0000;
	/* Same as the popup background */
	text-align: right;
	width: 35px;
}

.fixed-popup-header:hover {
	background-color: #960000;
}

div#fixed-popup-content {
	white-space: pre-line;
}

image {
	cursor: url('icons/cursorhover.png')16 16, auto !important;
}

path.leaflet-interactive {
	cursor: url('Icons/cursorhover.png')16 16, auto !important;
}

.leaflet-popup-content img {
	display: none;
	/* Hide all images within Leaflet popups by default */
}

.leaflet-popup-content img.loaded {
	display: block;
	/* Only show images within Leaflet popups that have loaded successfully */
}

h2 {
	text-align: center;
	padding-bottom: 10px;
}

h4 {
	text-align: left;
	font-weight: 100;
	line-height: 21px;
}

.splash-screen {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	justify-content: center;
	align-items: center;
}

.splash-content {
	background-image: url('Icons/splashbackground.png');
	background-size: cover;
	color: white;
	text-shadow: 0px 0px 10px black;
	font-family: Viga-Regular;
	padding: 50px;
	width: 580px;
	border-radius: 3px;
	text-align: center;
	padding-bottom: 70px;
}

button.schließensplash {
	font-family: Viga-Regular;
	color: white;
	Background-color: #508dca;
	border-radius: 3px;
	border-color: white;
	border-style: solid;
}

button.schließensplash:hover {
	font-family: Viga-Regular;
	color: white;
	Background-color: #2e4f6e;
	border-radius: 3px;
	border-color: white;
	border-style: solid;
	cursor: pointer;
}

#contact-button {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-image: url(Icons/Mitmachen.png);
    color: white;
    background-color: #508dca;
    font-family: Viga-Regular;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-position-x: 10px;
    font-size: 16px;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 110px;
    height: 10px;
    box-shadow: 0px 0px 0px 3px white, 0px 0px 8px 1px black;
    z-index: 999;
    justify-content: flex-end;
}

#contact-button:hover {
	background-color: #173d60;
}
   .buttonWrapper {
      position: absolute; /* Position wie dein Button */
      top: 10px;
      right: 10px;
      width: 150px;
      height: 32px;
      z-index: 999;
    }

    #addFeatureBtn {
      display: flex;
      border-style: none;
      cursor: pointer;
      align-items: center;
      padding: 10px 20px;
      background-image: url(Icons/Mitmachen.png);
      color: white;
      background-color: #508dca;
      font-family: Viga-Regular;
      font-weight: bold;
      text-align: center;
      text-decoration: none;
      border-radius: 3px;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      background-position-x: 10px;
      font-size: 12px;
      width: 150px;
      height: 32px !important;
      box-shadow: 0px 0px 0px 3px white, 0px 0px 8px 1px black;
      z-index: 998;
      justify-content: flex-end;
    }

     .badge {
      position: absolute;
      bottom: -7px;
	  font-family: arial;
      left: -15px;
      background-color: red;
      color: white;
      padding: 2px 6px;
      font-size: 11px;
      font-weight: bold;
      transform: rotate(30deg);

      border-radius: 3px;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
      z-index: 1000;
      pointer-events: none;
    }

    


#addFeatureBtn:hover {
	background-color: #173d60;
}
#info-button {
	color: white;
	text-decoration: none;
	font-family: Viga-Regular;
	position: absolute;
	right: 10px;
	border-radius: 3px;
	text-align: center;
	width: 150px;
	height: 30px;
	line-height: 30px;
	background-color: #508cda;
	box-shadow: 0px 0px 0px 3px white, 0px 0px 8px 1px black;
	top: 60px;
	z-index: 999;
	text-transform: uppercase;
    font-weight:bold
}


#info-button:hover {
	background-color: #173d60;
}

.splash-info {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	/* Darkened background */
	justify-content: center;
	align-items: center;
	z-index: 2000;
}


.splash-info-content {
	background: white;
	padding: 80px;
	color: #3f3f3f;
	border-radius: 5px;
	font-family: Viga-Regular;
	width: 900px;
	/* Adjust as necessary */
	max-height: 500px;
	overflow-y: auto;

}

span.infotext {
	text-align: justify;
}

button.schließeninfobutton {
	border-color: white;
	font-family: Viga-Regular;
	cursor: pointer;
	border-radius: 3px;
	border-style: solid;
	color: white;
	background-color: #508dca;
	font-size: 20px;
	top: 180px;
	position: absolute;
	z-index: 1001;

}

button.schließeninfobutton:hover {

	background-color: #173d60;
}

.picture-window {
	position: absolute;
	opacity: 0;
	visibility: hidden;
	transform: translateX(100%);
	
	transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
	top: 110px;
	right: 10px;
	width: auto;
	height: auto;
	background-color: white;
	border: 4px solid white;
	border-radius: 3px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	padding: 10px;
	z-index: 998;
    padding-top: 20px;
}

.picture-window.visible {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	/* Slide in to its natural position */
}

.picture-window img {
	width: 200px;
	height: auto;
	border-radius: 3px;
}

button#toggle-picture-button {
    position: absolute;
    display: block;
    border-color: white;
    border-style: solid;
    color: white;
    font-weight: bold;
    background-color: #508dca;
    border-radius: 5px;
    cursor: pointer;
    border-width: 3px;
    height: 33px;
    font-size: 16px;
    width: 155px;
    right: 7px;
    top: 105px;
    z-index: 999;
    text-align: center;
    box-shadow: 0px 0px 8px 1px #0000008c;
}

button#toggle-picture-button:hover {
	background-color: #173d60;
}

img.rechtsklick {
	width: 80px;
	position: relative;
	padding: 20px 100px 20px 20px;
}

img.lupe {
	width: 80px;
	position: relative;
	padding: 20px 20px 20px 100px;
}

img.koordinaten {
	width: 80px;
	position: relative;
	padding: 20px 100px 20px 20px;
}

span.rechtsklickbeschreibung {
	display: inline-block;
}

img.koordinaten2 {
	width: 80px;
	position: relative;
	padding: 20px 20px 20px 100px;
}

img.teilen {
	width: 80px;
	position: relative;
	padding: 20px 100px 20px 20px;
}

img.basemap {
	width: 80px;
	position: relative;
	padding: 20px 20px 20px 100px;
}

button#share-button {
	width: 40px;
	height: 40px;
	background-image: url(Icons/teilenicon.png);
	background-size: contain;
	background-color: #ee82ee00;
	border-style: none;
	cursor: pointer;
}

button#share-button:hover {

	background-image: url(Icons/teileniconhover.png);

}

.iconcontainer {
	border-top: dotted;
	border-color: #e2e2e2;
	border-width: thick;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}
.leaflet-control-geocoder {
    position: absolute;
    top: 100px;
    border-radius: 10px!important;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4)!important;
}
button.leaflet-control-geocoder-icon {
    background-image: url('Icons/searchlocation.png'); /* Replace with the path to your new icon */
    background-size: cover; /* This ensures your icon covers the whole button area */
    background-position: center; /* Centers the image */
    border: none; /* Optional: Removes the border if you don't need it */
}
button.leaflet-control-geocoder-icon:hover {
    background-image: url('Icons/searchlocationhover.png');  
}
div.leaflet-control-geocoder-expanded {
    width: 320px; /* Example to change the width when expanded */
    /* Add other styles for expanded state as needed */
}
div.leaflet-control-geocoder input {
    margin-left:20px;
}
.leaflet-container:not(.leaflet-touch) .leaflet-control-search {
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4)!important;
}
img.loadingimg {
    width: 150px;
    animation: pulse 3s linear infinite,fadeIn 3s;

}
@-webkit-keyframes "pulse" {
0% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}
50% {
   -webkit-transform: scale(0.8);
   transform: scale(0.8);
}
100% {
    -webkit-transform: scale(1);
   transform: scale(1);
}
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
button#toggleElevation {
    position: absolute;
    z-index: 1000;
    right: 10px;
    bottom: 30px;
}
   .elevation-popup .leaflet-popup-content-wrapper {
        background: rgba(255, 255, 255, 0.8);
        border-radius: 12px;
       min-height:50px;
       max-height:50px!important;
        border: 1px solid #4d4d4d;
    }
 .elevation-popup .leaflet-popup-content {
    color: #508dca;
    font-size: 16px;
    line-height: 24px;
    width: max-content !important;
    font-weight: bold;
}
    .elevation-popup .leaflet-popup-tip-container {
        display: none;
    }
.elevation-popup .leaflet-popup-close-button {
    background: #ff0000!important; /* Hintergrundfarbe des Buttons */
    color: #ffffff!important; /* Farbe des Schließkreuzes */
    right: -55px !important;
    height: 34px !important;
    width: 15px !important;
        padding: 20px 20px 0 0 !important;
        border-radius: 0px 12px 12px 0px;
    right: -25px !important;
}

.elevation-popup .leaflet-popup-close-button:hover {
    background: #cc0000!important; /* Hintergrundfarbe beim Hover */
}
button#toggleElevation {
    position: absolute;
    z-index: 1000;
    color: white;
    font-family: 'Viga-Regular';
    cursor:pointer;
    background-color: #508dca;
    border-style: none;
    border-radius: 5px;
    font-weight: bold;
    padding: 7px;
    right: 10px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4)!important;
    bottom: 30px;
}
button#toggleElevation:hover {background-color:#173d60}
#mapOverlay {
    position: absolute;
bottom: 20px;
    left: 50%;
    font-family: 'Viga-Regular';
    transform: translateX(-50%); /* Zentriert das Element horizontal */
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    z-index: 1000; /* Stellt sicher, dass das Overlay über anderen Karten-Elementen angezeigt wird */
    pointer-events: none; /* Ermöglicht das Klicken "durch" das Overlay */
}
#heightDataOverlay {
    position: absolute;
bottom: 60px;
    left: 50%;
    font-family: 'Viga-Regular';
    transform: translateX(-50%); /* Zentriert das Element horizontal */
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    z-index: 1000; /* Stellt sicher, dass das Overlay über anderen Karten-Elementen angezeigt wird */
    pointer-events: none; /* Ermöglicht das Klicken "durch" das Overlay */
}
@keyframes pulsate {
  0% { stroke-opacity: 1; transform: scale(1); }
  50% { stroke-opacity: 0.5; transform: scale(1.2); }
  100% { stroke-opacity: 1; transform: scale(1); }
}

.leaflet-control-layers-inline .leaflet-control-layers-base {

    z-Index: 801;
 
}
/* Standard-Stile (Desktop, falls noch nicht definiert) */
#toggleElevation {
    font-size: 18px;
    padding: 10px 20px;
}

#heightDataOverlay,
#mapOverlay {
    font-size: 16px;
}
button#toggle-attribution {
    display:none;
}
.custom-locate-button {
      position: relative;
      background-image: url('pin.png');
      background-size: contain;
      border-radius: 5px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.3);
      cursor: pointer;
      width: 40px;
      height: 40px;
      left: 10px;
top:15px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    /* Diese Elemente werden überlagert und animieren den Crossfade */
    .pulse-img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-size: contain;
      background-position: center;
      background-repeat: no-repeat;
      opacity: 0;
    }
    /* Das erste Bild (pin.png) */
    .pulse1 {
      background-image: url('pin.png');
      animation: pulse 2s infinite;
    }
    /* Das zweite Bild (pin3.png) startet mit einer Verzögerung, sodass sich die Animation überblendet */
    .pulse2 {
      background-image: url('pin3.png');
      animation: pulse 2s infinite;
      animation-delay: 1s;
    }
    @keyframes pulse {
      0% { opacity: 2; }
      50% { opacity: 0; }
      100% { opacity: 2; }
    }
.modal-open-btn {
  padding: 0.5em 1.2em;
  background-color: #3273dc;
  color: white;
  border: none;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.6) 100%);
  backdrop-filter: blur(2px);
  padding: 1em;
  box-sizing: border-box;
  touch-action: none;
  overscroll-behavior: contain;
}

.modal-box {
  position: relative;
  width: 100%;
  height:100%;
  max-width: 600px;
  padding: 2rem;
  border-radius: 16px;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  box-sizing: border-box;
  max-height: none;
  text-shadow: 1px 1px 10px black;
  overflow: auto;
}
.modal-box::-webkit-scrollbar {
  width: 8px;
}

.modal-box::-webkit-scrollbar-thumb {
  background-color: rgb(255 255 255 / 58%);
    border-radius: 6px;
}

.modal-box::-webkit-scrollbar-track {
  background: #64646496;
    border-radius: 6px;
}

.modal-box h2 {
  margin-top: 0;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-box label {
  display: block;
  margin-bottom: 1.2em;
  font-weight: 500;
  font-size: 1rem;
}

.modal-box input,
.modal-box textarea,
.modal-box select {
  width: 100%;
  padding: 0.6em;
  margin-top: 0.3em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.modal-box label input[type="text"],
.modal-box label input[type="file"],
.modal-box label select,
.modal-box label textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 0.5em;
  transition: border-color 0.3s ease;
}

.modal-box label textarea {
  min-height: 150px;
  resize: vertical;
}

.modal-box label input:focus,
.modal-box label select:focus,
.modal-box label textarea:focus {
  border-color: #4caf50;
  outline: none;
}

#selectOnMapBtn {
  margin: 0em 5em 3em 0.2em;
  padding: 0.5em 1em;
  font-size: 0.95rem;
  border-radius: 6px;
  color: white;
  background-color: #8a8a8a;
  border: 1px solid #aaa;
  cursor: pointer;
  transition: background 0.3s ease;
}

#selectOnMapBtn:hover {
  background: #d0d0d0;
}

.modal-box label[style*="display: flex"] {
  align-items: flex-start !important;
  gap: 0.7em;
  font-weight: normal;
}

.modal-box label[style*="display: flex"] input[type="checkbox"] {
  transform: scale(1.2);
  margin-top: 0.2em;
}

.modal-box label[style*="display: flex"] span {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #555;
}

.modal-actions {
  padding-bottom: env(safe-area-inset-bottom, 1.5em);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5em;
  gap: 1rem;
}

.modal-actions button {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-actions button[type="submit"] {
  background: #4caf50;
  color: white;
}

.modal-actions button[type="submit"]:hover {
  background: #43a047;
}

.modal-actions .cancel-btn {
  background: #ddd;
  color: #c35a5a;
}

.modal-actions .cancel-btn:hover {
  background: #ccc;
}

#formErrors {
  color: #d32f2f;
  font-size: 0.9rem;
  margin-top: 0.5em;
}

#uploadProgress {
  height: 1rem;
  border-radius: 6px;
  background: #eee;
}

#uploadProgress::-webkit-progress-value {
  background: #4caf50;
  border-radius: 6px;
}

#uploadPercent {
  font-size: 0.85rem;
  margin-top: 0.3em;
}

@media (max-width: 768px) {
  .modal-box {
    width: 100%;
    max-height: 100%;
  }

  .modal-box h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .modal-box label {
    font-size: 0.95rem;
    margin-bottom: 1em;
  }

  .modal-box input[type="text"],
  .modal-box select,
  .modal-box textarea {
    font-size: 1rem;
    padding: 0.6rem;
  }

  #selectOnMapBtn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .modal-box label[style*="display: flex"] span {
    font-size: 0.7rem;
  }

  .modal-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .modal-actions button {
    width: 100%;
    font-size: 1rem;
  }

  #uploadPercent {
    font-size: 0.8rem;
  }
}

.label-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  font-weight: normal;
}

.label-checkbox input[type="checkbox"] {
  margin-top: 0.6em;
  flex-shrink: 0;
}

.label-checkbox .checkbox-text {
  color: white;
  font-size: 11pt;
  line-height: 1.4;
  text-align: center;
  font-weight: 300;
}

@media (max-width: 768px) {
  .label-checkbox .checkbox-text {
    font-size: 8pt;
  }
}
img.hinzufuegen
 {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 20%;
    min-width: 200px;
}