body {
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	font-family: Arial, Helvetica, sans-serif;
	overflow-x: hidden;
	background-color: #2f4773;
}

#kartenfenster {
    position: relative;
    width: min(540px, 100vw);
    aspect-ratio: 9 / 15.8;
    overflow: hidden;
    background: #172033;
}

#karte {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#fortschrittsanzeige {
    position: absolute;
    z-index: 900;
    top: 77px;
    left: 20px;
    right: 20px;
    height: 12px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

#fortschrittsbalken {
    width: 0%;
    height: 100%;
    background: #f6ce00;
    transition: width 0.15s linear;
}

#fortschritt-text {
    display: none;
}

#punktestand {
    position: absolute;
    z-index: 1000;
    top: 20px;
    left: 20px;
    padding: 7px 10px;
    border-radius: 4px;
    background: rgba(34, 53, 96, 0.9);
    color: #f6ce00;
    font-size: 25px;
    font-weight: 700;
    white-space: nowrap;
}

#logo {
    position: absolute;
    top: 14px;
    right: 20px;
    z-index: 1000;
}

#logo img {
    height: 50px;
    display: block;
    cursor: pointer;
}

#startfenster,
#endfenster {
	position: absolute;
	z-index: 1200;
	top: 20%;
	left: 50%;
	width: min(300px, calc(100% - 40px));
	box-sizing: border-box;
	transform: translateX(-50%);
	border: 3px solid rgba(255, 255, 255, 1);
	border-radius: 10px;
	background: rgba(34, 53, 96, 0.95);
	color: #ffffff;
	text-align: center;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
	padding-top: 22px;
	padding-bottom: 0px;
	padding-right: 20px;
	padding-left: 20px;
}

#startfenster p,
#endfenster p {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.45;
}

#abschlussbereich {
    position: absolute;
    z-index: 1200;
    top: 20%;
    left: 50%;
    width: min(430px, calc(100% - 40px));
    transform: translateX(-50%);
}

#abschlusslogo {
    display: block;
    width: 100%;
}

#abschlussbereich #endfenster {
    position: relative;
    top: auto;
    left: auto;
    width: min(320px, 100%); /* Breite der Schlusstafel */
    margin: 12px auto 0;
    transform: none;
}

#lade-status {
    display: block;
    margin: -8px 0 14px;
    color: #d9e2f4;
    font-size: 13px;
}

#start-button,
#pause-button {
	border: 1px solid #ffffff;
	border-radius: 6px;
	background: #f6ce00;
	color: #172033;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	margin-bottom: 20px;
}

#start-button {
    padding: 12px 24px;
}

#start-button:disabled {
    cursor: wait;
    opacity: 0.55;
}

#pause-button {
    position: absolute;
    z-index: 1100;
    bottom: 22px;
    left: 50%;
    min-width: 132px;
    padding: 11px 18px;
    transform: translateX(-50%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

#pause-button:disabled {
    cursor: default;
    opacity: 0.6;
}

[hidden] {
    display: none !important;
}

.stern-marker {
    border: 0;
    background: transparent;
}

.stern-symbol {
    width: 48px;
    height: 48px;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: rgba(34, 53, 96, 0.9);
    color: #f6ce00;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
    transform: scale(1);
    opacity: 1;
    transition:
        transform 0.5s ease-out,
        opacity 0.5s ease-out;
    transform-origin: center;
    will-change: transform, opacity;
}

.stern-symbol.eingesammelt {
    transform: scale(3);
    opacity: 0;
    pointer-events: none;
}

.leaflet-tooltip.ortsbeschriftung {
    border: 0;
    border-radius: 4px;
    padding: 4px 8px;
    background: rgba(34, 53, 96, 0.92);
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
    font-size: 14px;
    font-weight: 700;
}

.leaflet-tooltip-bottom.ortsbeschriftung::before {
    border-bottom-color: rgba(34, 53, 96, 0.92);
}

#vorladebereich {
    position: fixed;
    top: 0;
    left: -10000px;
    width: min(540px, 100vw);
    aspect-ratio: 9 / 16;
    visibility: hidden;
    pointer-events: none;
}

.vorladekarte {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

