@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@200..900&display=swap');

* {
	box-sizing: border-box;
}

html, body {
	width: 100%;
	margin: 0;
	overflow-x: hidden;
}

body {
	min-height: 100dvh;          /* dynamische Viewport-Höhe – fängt iOS-Adressleiste ab */
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	font-family: 'Mulish', sans-serif;
}

/* Wrapper – exakt so groß wie der Kreis. Alle Kind-Elemente positionieren
   sich relativ zu dieser Bühne, nicht mehr relativ zur Body-Höhe. */
.buehne {
	position: relative;
	width: clamp(300px, 50vw, 600px);
	height: clamp(300px, 50vw, 600px);
}

#farbkreis {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: #F0EAD6;
	transition: background-color 0.1s ease;
}

.buttonsContainer {
	position: absolute;
	top: 35%;                    /* relativ zur Kreis-Höhe */
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	justify-content: center;
}

#checkInButton,
#checkOutButton {
	margin: clamp(6px, 2vw, 15px);
	width: clamp(70px, 18vw, 120px);
	height: clamp(70px, 18vw, 120px);
	border-radius: 50%;
	border: none;
	cursor: pointer;
	transition: transform 0.1s ease;
	-webkit-tap-highlight-color: transparent;
}

#checkInButton { background: #ffffff; }
#checkOutButton { background: #666666; }

#checkInButton:active,
#checkOutButton:active {
	transform: scale(0.95);
}

#frageAnzeige {
	position: absolute;
	top: 65%;                    /* relativ zur Kreis-Höhe */
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80%;
	margin: 0;
	word-wrap: break-word;
	text-align: center;
	font-size: clamp(18px, 4.5vw, 24px);
	font-weight: 400;
}

/* Menü oben links */
#katalogAuswahlButton {
	position: absolute;
	top: 20px;
	left: 20px;
	background: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border-style: solid;
	border-color: #959595;
	color: #959595;
	font-size: 18px;
	cursor: pointer;
	z-index: 10;
}

.katalogContainer {
	display: none;
	position: absolute;
	top: 70px;
	left: 0;
	cursor: pointer;
	z-index: 10;
}

.katalogButton {
	background: none;
	border-style: solid;
	border-color: #000000;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	margin: 5px 0 5px 20px;
	cursor: pointer;
}

.katalogContainer.active {
	display: block;
	animation: slideIn 0.5s forwards;
}

.katalogContainer.inactive {
	display: block;
	animation: slideOut 1.0s forwards;
}

#katalogAuswahlButton.aktiv {
	border-color: #000000;
	color: #000000;
}

.katalogButton.aktiv {
	background-color: #000000;
}

.katalogOption {
	display: flex;
	align-items: center;
	gap: 10px;
}

@keyframes slideIn {
	from { transform: translateX(-100%); opacity: 1; }
	to   { transform: translateX(0);     opacity: 1; }
}

@keyframes slideOut {
	from { transform: translateX(0);     opacity: 1; }
	to   { transform: translateX(-100%); opacity: 1; }
}

/* Mobile: nur Bühnengröße + Menü-Touch-Targets anpassen.
   Die internen Verhältnisse (Buttons/Text im Kreis) skalieren automatisch mit. */
@media (max-width: 600px) {
	.buehne {
		width: 86vw;
		height: 86vw;
	}

	#frageAnzeige {
		width: 90%;
		font-size: clamp(16px, 4.8vw, 20px);
	}

	#katalogAuswahlButton {
		top: 14px;
		left: 14px;
		width: 44px;
		height: 44px;
	}

	.katalogContainer {
		top: 66px;
		max-width: 90vw;
	}

	.katalogButton {
		width: 40px;
		height: 40px;
		margin-left: 14px;
	}

	.katalogOption span {
		font-size: 16px;
	}
}
