/* General */
body, html {
	height: 100%;
	margin: 0px;
}

body {
	font-family: 			sans-serif;
	color: 					white;
	margin: 				0px;
	background: 			#333333;
	background-size: 		cover;
	background-attachment: 	fixed;
	background-position: 	center;
	text-align: 			center;
	min-height:				100vh;
    display:				flex;
    flex-direction:			column;
}

/* Title (Logo) & Subtitle */
#container {
	display: 				inline-block;
	position: 				relative;
	flex: 					1;									/* Nimmt den verfügbaren Platz ein */
}

#logo {
	box-sizing:				border-box;
	height:					150px;
	background-size:		auto 150px;
    background-position:	left;
    background-repeat:		no-repeat;
}

#splash  {
	width: 					650px;
	padding: 				15px;
	border-radius: 			25px;
	font-size: 				large;
	display: 				inline-block;
	text-align: 			left;
	position: 				relative;
	overflow: 				hidden;
	backdrop-filter: 		blur(3px);
	-webkit-box-shadow: 	0px 1px 3px 0px rgba(0,0,0,0.2);
	-moz-box-shadow: 		0px 1px 3px 0px rgba(0,0,0,0.2);
	box-shadow: 			0px 1px 3px 0px rgba(0,0,0,0.2);
}

#splash  > *:first-child {
	margin-top: 			0px;
}
#splash  > *:last-child {
	margin-bottom: 			0px;
}
#splash  div {
	margin-top:				50px;
	margin-bottom:			25px;
	text-align:				center;
}

.splash-start {
	background-color: 		rgba(60,60,60,0.6);
}

/* Links */
a {
	text-decoration: 		none;
	color: 					#00afc8;
	cursor: 				pointer;
}
a:hover {
	text-decoration: 		underline;
}


footer {
	margin-top:				auto;
	box-sizing:				border-box;
	margin:					0 auto;
    padding:				20px 0;
}

footer img {
	width:					66%;
	max-width:				500px;
}

footer a {
	color:          		white;
}

/* FLaggen */
.flag {
	width:					100px;
	margin:					15px;
}

/* SLUB-Buttons */
.slubbutton {
	display: 				inline-block;
	min-width: 				120px;
	padding: 				10px 10px;
	text-align: 			center;
	cursor: 				pointer;
	background-color:		#222222;
	color: 					#FFFFFF;
	border:					0;
	border-radius:			25px;	
	font-size: 				inherit;
	margin: 				5px;
}

.slubbutton:hover {
	background-color: 		#444444;
	color: 					#FFFFFF;
	border:					0;
}

.slubbutton.secondary {
	background-color: #112D2D;
	border-color: #00ABC3;
	color: #40E7FF;
}
.slubbutton.secondary:hover {
	background-color: #25656e;
}
.slubbutton.destructive {
	background-color: #181A1B;
	border-color: #C20000;
	color: #FF3D3D;
}
.slubbutton.destructive:hover {
	background-color: #a30000;
}
.slubbutton:disabled, a.slubbutton[disabled],
.slubbutton.disabled {
	background-color: 	#112D2D !important;
	color: 				#85CCD6 !important;
	border-color: 		#266771 !important;
}
.slubbutton:not([disabled]):not(.disabled):hover img {
	filter: brightness(150%);
}

.slubbutton img {
	width: 100%;
	border-radius: 25px;
}

/* Audio-Steuerelemente Container */
#audio-controls {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px 25px;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  min-width: 400px;
  text-align: center;
}

#audio-status {
  font-size: 14px;
  margin-bottom: 15px;
  color: #ccc;
}

/* Fortschrittsbalken Styles */
.progress-container {
  margin-bottom: 15px;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #ffffff;
  margin-bottom: 8px;
}

.progress-bar-container {
  position: relative;
  height: 22px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 11px;
  cursor: pointer;
  overflow: visible;
  display: flex;
  align-items: center;
}

#progress-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  cursor: pointer;
  border-radius: 3px;
  position: relative;
}

 #progress-bar.progress::before {
	 color: pink;
 }

#progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

#progress-bar::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: none;
  position: relative;
  z-index: 2;
}

#progress-bar::-webkit-slider-track {
  height: 6px;
  background: #FBC3D7;
  border-radius: 3px;
}

#progress-bar::-moz-range-track {
  height: 6px;
  background: #FBC3D7;
  border-radius: 3px;
  border: none;
}

#progress-bar::-moz-range-progress {
  height: 6px;
  background: #F03847;
  border-radius: 3px;
}

/* Vorladen-Fortschrittsbalken Styles */
#preload-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 34, 34, 0.8);
  z-index: 2000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.preload-content {
  background: #000000;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 300px;
  max-width: 90%;
}

.preload-icon {
    margin: 0 auto 20px auto;
    width: 48px;
    height: 48px;
    border: 4px solid #ffffff;
    border-top: 4px solid #333333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preload-icon svg {
  width: 100%;
  height: 100%;
}

#preload-text {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 500;
}

.preload-bar-container {
  width: 100%;
  height: 8px;
  background: #333333;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
}

#preload-bar {
  height: 100%;
  background: #ffffff;
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.preload-subtitle {
  font-size: 12px;
  color: #ffffff;
  margin-top: 10px;
}

/* Animationen */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Control Buttons */
.control-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.control-btn {
  background: transparent;
  border: 2px solid white;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.control-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
  transition: fill 0.3s ease;
}

.control-btn:hover {
  background: white;
  color: black;
  transform: scale(1.1);
}

.control-btn:hover svg {
  fill: black;
}

.control-btn:active {
  transform: scale(0.95);
}

/* app description */
#appdescription {
	font-size: 1.2em;
	line-height: 150%;
}

#appdescription br {
	margin-bottom: 15px;
}

/* station buttons */
.station-button {
  position: relative;
  transition: all 0.3s ease;
  font-size: 0.8em;
}

.station-button img {
	margin-bottom: 15px;
}

.station-button.playing {
  background-color: #a6a6a6 !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.station-button.loading {
  background-color: #ff9800 !important;
  animation: pulse 1.5s infinite;
}

.station-button.playing::after,
.station-button.loading::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
}

.station-button.playing::after {
  animation: blink 1s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Responsive Design für kleinere Bildschirme */
@media (max-width: 480px) {
 
}

/* Mobile Device Adjustments */
@media only screen and (max-width: 620px) {
	html, body {
		font-size: 12px;
	}
	#logo {
		height: 100px;
		background-size: auto 50px;
		background-position: center;
		background-repeat: no-repeat;
	}
	#container,
	#splash {
		box-sizing: border-box;
		max-width: 100%;
	}
	#container {
		padding: 5px;
		margin-top: 15px;
	}
	#splash {
		padding: 15px;
	}
	.form-row.icon img {
		top: 10px;
		left: 10px;
		height: 20px;
		width: 20px;
	}
	.form-row.icon img.right {
		right: 10px;
	}
	.slubbutton {
		min-width: 75px;
	}
	
	#audio-controls {
		left: 10px;
		right: 10px;
		transform: none;
		min-width: auto;
		padding: 15px 20px;
	}
	
	.control-btn {
		width: 50px;
		height: 50px;
	}
	
	.control-btn svg {
		width: 20px;
		height: 20px;
	}

	.control-buttons {
		gap: 15px;
	}
}