@font-face {
    font-family: 'DINOT'; /*a name to be used later*/
    src: url("/static/DINOT.otf"); /*URL to font*/
}
@font-face {
    font-family: 'DINOT-Bold'; /*a name to be used later*/
    src: url("/static/DINOT-Bold.otf"); /*URL to font*/
}

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
}

#map {
width: 100%;
height: 100%;
}

/* Sidebar Styling */
#marker-sidebar textarea,
#marker-sidebar select {
width: 100%;
margin-bottom: 10px;
}

#marker-sidebar button {
margin-right: 5px;
}

#marker-detail img {
	height: auto;
	width: auto;
}

#marker-sidebar{
	margin-top: 25px;
	background: var(--header-button-hover) !important;
	position: fixed;
	z-index: 1000 !important;
	overflow: scroll;
}
#marker-edit-form{
	padding-right: 10px;
	padding-top: 20px;
}

input[type="file"] {
	display: none;
}
.file-upload{
	display: flex;
	padding-top: 5px;
	padding-bottom: 10px;
}

/* Kontextmenü Styling */
#context-menu {
	border-radius: 8px;
	background-color: var(--header-button-hover) !important;
	color: var(--text);
}

#context-menu li {
padding: 5px 10px;
cursor: pointer;
}

#context-menu li:hover {
background-color: rgba(130, 130, 130, 0.2);
}

#share-message {
display: inline-block;
margin-left: 8px;
opacity: 0;
transition: opacity 0.5s;
color: green;
font-size: 0.9em;
}
#share-message.show {
opacity: 1;
}

.icon-btn{
	width: 38px;
}

.marker-name{
	font-family: DINOT-Bold;
	font-size: 24pt;
	flex: 1;
	padding-right: 50px;
	word-break: break-word;
}
.marker-stat-title{
	font-family: DINOT-Bold;
}

.btn{
	background: var(--dot);
	border: none;
	padding: 8px;
	border-radius: 8px;
	cursor: pointer;
}
.btn:hover{
	background: var(--dot-hover);
}

.headerkarte{
	background: var(--header-button-active);
}

.eingabefeld{
	background: var(--header);
	border: none;
	padding: 8px;
	border-radius: 8px;
	width: 100%;
	margin-top: 5px;
	margin-bottom: 10px;
}
.flex-this{
	display: flex;
	align-items: left;
	gap: 5px;
}
body {
	background-size: cover;
	background-position: center;
	color: var(--text);
	font-family: DINOT;
	margin: 0;
	width: 100%;
	min-height: 100vh;
}

.hpc{
	position: relative;
	z-index: 10;
}

.main {
	height: calc(100vh - 50px);
	position: relative;
    z-index: 130;
}

.center-child {
	display: grid;
	height: 90vh;
}

div.flex{
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}

.cal{
	width: 100%;
	height: 600px;
}

.footer{
	text-align: center;
}

#use5309{
	animation: rotate-path 3s linear infinite;
	animation-play-state: paused;
	transform-box: fill-box;
	transform-origin: center;
	transition: 1s ease;
}
#svg5:hover #use5309{
	animation-play-state: running;
}
@keyframes rotate-path {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

#main-title {
	place-self: center;
	display: inline-block;
	font-family: DINOT-Bold;
	z-index: 13;
	transition: transform 0.1s;
}

#main-title > div {
	transform: translate3d(0, 0, -1);
	color: var(--text-gray);
	margin-top: 3px;
}

.untertitel{
	position: relative;
    z-index: 20;
    color: var(--text);
    font-family: DINOT-Bold;
}

#background-rotator {
	position: fixed;
	inset: 0;
	z-index: -2;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

#background-rotator .overlay {
	position: absolute;
	inset: 0;
	background-color: var(--main-background);
	opacity: 0.7;
	z-index: 1;
}

#background-rotator .bg-layer {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 2s ease;
	z-index: 0;
}
#context-menu #delete-marker-menu {
	color: red;
}
#delete-marker-btn:hover {
	color: red;
}
#save-marker-btn:hover {
	color: #00bb00;
}
.footer{
	display: flex;
	justify-content: center;
}
.footer-content{
	position: fixed;
	bottom: 20px;
}
.footer-icon{
	height: 25px;
	width: auto;
	fill: var(--logo);
	padding-left: 10px;
	padding-right: 10px;
}
.icon-text{
	font-family: DINOT-Bold;
	color: var(--text);
	padding-right: 10px;
	position: relative;
	bottom: 5px;
}
.icon-text:hover{
	text-decoration: underline;
}
.icon-link{
	text-decoration: none;
}
.ueber{
	font-family: DINOT-Bold;
	color: var(--text);
	padding-left: 8px;
	padding-right: 10px;
	position: relative;
	bottom: -3px;
}
.ueber:hover{
	text-decoration: underline;
}

.bottom-overlay {
	position: fixed;
	bottom: 20px;
	left: 20px;
	display: flex;
	align-items: center;
	gap: 20px;
	z-index: 900;
	padding-right: 20px;
}

/* + Button */
.add-marker-btn {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	border: none;
	background-color: var(--header-button-hover);
	color: var(--text);
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
	transition: transform 0.2s;
	flex-shrink: 0;
}

.add-marker-btn:hover {
	transform: scale(1.1);
}
.map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	background-color: var(--header-button-hover);
	opacity: 80%;
	padding: 5px 10px;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
	font-size: 14px;
	color: var(--text);
	align-items: center;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 5px;
}

.legend-color {
	width: 16px;
	height: 16px;
	border-radius: 3px;
	display: inline-block;
}

.legend-item {
	cursor: pointer;
	user-select: none;
	transition: opacity 0.2s;
}

.legend-item.disabled {
	opacity: 0.4;
}

.legend-item.disabled .legend-color {
	filter: grayscale(100%);
}

.legend-item.disabled span:last-child {
	text-decoration: line-through;
}
.sidebar-header {
	display: flex;
	align-items: center;
	margin-bottom: -10px;
}
.close-btn{
	position: absolute;
	right: 15px;
	top: 52px;
	background: none;
	border: none;
	padding: 8px;
	border-radius: 8px;
	cursor: pointer;
	width: 38px;
}
.close-btn:hover{
	background: var(--dot-hover);
}
.sidebar-content {
	padding-bottom: 60px;
}
.leaflet-bar a{
	background-color: var(--header-button) !important;
	color: var(--text) !important;
	border-bottom: 1px solid var(--dot-hover);
}
.leaflet-bar a:hover, .leaflet-bar a:focus{
	background-color: var(--header-button-hover) !important;
}
.marker-beschreibug {
	white-space: pre-line;
}
/*.leaflet-tooltip {
	background: var(--header-button-hover) !important;
	color: var(--text) !important;
}*/
