/* Grundlegendes Styling */
body {
    font-family: Arial, sans-serif;
	font-size: 16px;
    margin: 0;
    padding: 0;
    display: flex;
	cursor: default;
	user-select: none;
}

#head_name {
	cursor: pointer;
}

#head_name {
	font-size: 24px;
	margin-top: 0;
	margin-bottom: 15px;	
}

#head_name:hover {
	cursor: pointer;
	text-decoration: underline;
}

#layout {
	width: 100%;
	display: flex;
	height: 100vh;
	overflow: hidden;
}

.auto-load-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #ddd;
}

/* Auto-Load Checkbox Styling */
.auto-load-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  /* cursor: pointer; */
}

.auto-load-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #007bff;
  cursor: pointer;
}

/* Sortierung */
.sort-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-right {
  justify-content: flex-end;
}

.sort-container label {
  color: #555;
}

.sort-dropdown {
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
  width: 200px;
  min-width: 150px;
  cursor: pointer;
}

.sort-dropdown:hover {
  background-color: #e9ecef;
}

.sort-dropdown:focus {
  outline: none;
  border-color: #007bff;
}

.check-button {
  background-color: #007bff;
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 15px;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.check-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.check-button:active {
  background-color: #00408d;
  transform: translateY(1px);
}

.server_container {
    width: calc(100% - 20px); /* Volle Breite mit Abstand */ 
    margin: 20px auto;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.loginBox {
	width: 200px;
	padding: 10px 0 10px 0;
}  

.loginBtn {
	padding: 10px 5px;
	font-size: 14px;
	padding: 10px 10px;
	background-color: #ff6600;
	color: white;
	text-decoration: none;
	font-weight: bold;
	border-radius: 5px;
	transition: background-color 0.3s;
}

.is-logged-in {
	padding: 10px 40px;
}

.loginBtn:hover {
  background-color: #cc5200;
  cursor: pointer;
}

.sidebar {
    position: fixed;
    width: 220px;
    height: 100vh;
    overflow-y: auto;
    background: #333;
    color: white;
    padding: 20px;
    transition: transform 0.3s ease;
}


.sidebar h2, .sidebar h3 {
    color: #f4f4f4;
}

.sidebar ul {
    list-style: none;
    padding: 0 0 0 10px;
}

.sidebar li {
    padding: 0 0 12px 0;
	font-size: 17px;
}

.sidebar a {
    color: white;
    text-decoration: none;
}

.sidebar li a:hover {
	cursor: pointer;
	border-bottom: 2px solid white
	/* text-decoration: underline; */
}

.pointer:hover {
	cursor: pointer;
	text-decoration: underline;
}

.menu-item.active {
    /* text-decoration: underline; */
	border-bottom: 2px solid white;
	font-weight: bold;
}
/* Hauptinhalt */
main {
    margin-left: 270px;
    padding: 0 10px 0 10px;
    flex: 1;
	overflow-y: auto;
}

/* Eingabefeld und Button */
.input-container {
  display: block;
  margin-bottom: 20px;
}

.input-field {
    width: calc(100% - 35px);
	height: 60px;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
    font-size: 16px;
}

.input-field:focus {
    border-color: #007bff;
    outline: none;
}

/* Overlay für mobiles Menü */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9;
}

/* Hero Section */
.hero {
  background: linear-gradient(45deg, #0066cc, #004080);
  color: white;
  text-align: center;
  border-radius: 0 0 10px 10px;
  margin-top: -10px;
  padding: 0 5px 0 5px;
}

.hero h1 {
  font-size: 24px;
  margin-bottom: 20px;
  padding: 10px 0 0 0;
}

.hero p {
  font-size: 1.0rem;
  /* max-width: 800px; */
  margin: 0 auto;
  line-height: 20px;
  padding-bottom: 15px;
}

/* Styling für die verschiedenen Inhalte */
.content-section {
    display: none; /* Alle Inhalte zunächst ausblenden */
}

.content-section.active {
    display: block; 
}

.linkMark {
	cursor: pointer;
	text-decoration: underline;
	color: #404040;
	font-weight: bold;	
}

/* Footer Styling */
.footer {
	/* position: absolute; */
	/* bottom: 0; */
	/* width: calc(100% - 300px); */
	text-align: center;
	/* padding: 20px 0; */
	background-color: #222;
	color: white;
	font-size: 0.9rem;
	border-top: 2px solid #444;
	border-radius: 10px 10px 0 0;
	margin: 20px 0 10px 0;
}

.footer_txt {
	padding: 5px 0 10px 0;
}


.footerLink {
    color: white;  /* Blau */
    text-decoration: none;
}

.footerLink:hover {
    text-decoration: underline;
}


.loadingBox {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Volle Höhe des Viewports */
  width: 100%;
}

.loader {
  --d: 30px; /* Größe der Bewegung */
  width: 10px;
  height: 10px;
  border-radius: 50%;
  color: #333;
  box-shadow: 
    calc(1 * var(--d))      0px                   0px 0px,
    calc(0.707 * var(--d))  calc(0.707 * var(--d)) 0px 1px,
    0px                     calc(1 * var(--d))     0px 2px,
    calc(-0.707 * var(--d)) calc(0.707 * var(--d)) 0px 3px,
    calc(-1 * var(--d))     0px                   0px 4px,
    calc(-0.707 * var(--d)) calc(-0.707 * var(--d)) 0px 5px,
    0px                     calc(-1 * var(--d))    0px 6px;
  animation: l27 1s infinite steps(8);
}

@keyframes l27 {
  100% {
    transform: rotate(1turn);
  }
}

#loader-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 100%;
}

/* 404 */
.notfound_404 {
	color: #333;
	font-size: 24px;
	margin-bottom: 20px;
}

.notfound {
	color: #333;
	font-size: 22px;
	margin-bottom: 20px;
}

.absatz_404 {
	color: #666;
	font-size: 16px;
	line-height: 1.6;
}

.content_404 {
	width: 100%;
	text-align: center;
	padding: 100px 0;
	background-color: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	margin-top: 20px;
	border-radius: 8px;	
}

.funny {
	font-style: italic;
	color: #CA0202;
}

.notLoggedIn {
	width: 100%;
	text-align: center;
	padding: 100px 0;
	background-color: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	margin-top: 20px;
	border-radius: 8px;	
}

.notLoggedIn_h {
	font-size: 24px;
	margin-bottom: 20px;
}

.notLoggedIn_p {
	font-size: 16px;
	line-height: 1.9;
}

.notLoggedInBtn {
	margin-top: 20px;
}

.stationsLoadAuto {
    display: none;
	cursor: pointer;
}

.helper-text {
	color: #6c757d;
}





/* Stil für den Banner-Container */
.banner-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 80px;
    overflow: hidden;
    cursor: pointer;
    
    /* Flexbox für zentrierte Ausrichtung */
    display: flex;
    justify-content: center;
    align-items: center; 
}

/* Stil für die Banner-Bilder */
.banner {
	width: 500px;
	height: 70px;
	max-width: 100%;
	max-height: 60px;
	transition: opacity 1s ease-in-out, transform 1s ease-in-out;
	object-fit: contain;
}


/* 🟢 Fade-In (Sanftes Einblenden) */
.fade {
    animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 🔵 Slide-In von rechts */
.slide {
    animation: slideIn 1s ease-in-out;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 🟣 Slide-In von links */
.slide-left {
    animation: slideInLeft 1s ease-in-out;
}
@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 🔴 Zoom-In */
.zoom {
    animation: zoomIn 1s ease-in-out;
}
@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 🟡 Flip-In (Drehung auf Y-Achse) */
.flip {
    animation: flipIn 1s ease-in-out;
}
@keyframes flipIn {
    from { transform: rotateY(90deg); opacity: 0; }
    to { transform: rotateY(0); opacity: 1; }
}


.menu-button {
	display: none;
}


/* Mobile Anpassungen */
@media (max-width: 768px) {	
/* --- Mobile Optimierung --- */
    .auto-load-options {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 15px;
    }

    .sort-container {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .sort-dropdown {
        width: 100%;
    }


	.input-field {
		font-size: 12px;
		height: 80px;
	}
	.helper-text {
		font-size: 12px;
	}	
	/* Menübutton */
    .menu-button::after {
        content: " ☰ Menü"; /* Zeige "☰ Menü" */
    }	
	
	.menu-button {
		display: block;
		position: absolute;
		right: 0px;
		background: #333;
		color: white;
		border: none;
		padding: 8px;
		font-size: 18px;
		cursor: pointer;
		transition: opacity 0.1s ease;
		z-index: 10;
	}
	
    .sidebar {
        right: -250px;
        left: auto;
        transform: none;
        z-index: 10;
		padding: 0;
    }

    .sidebar.open {
        right: 0;
		padding: 20px;
    }

    .menu-button.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .overlay.show {
        display: block;
    }

    main {
        margin-left: 0;
		padding: 0 5px 0 5px;
    }
	.loadingBox {
		align-items: flex-start !important;
		padding-top: 100px;
	}
	.hero h1 {
		font-size: 1.5rem;
	}
	.hero {
		margin-top: 45px;
	}
	.footer {
		position: relative;
		width: calc(100%);
		padding: 10px 0;
	}
	.footer_txt {
		padding: 10px 0 0 0;
	}
	.banner-container {
		width: 80%;
		min-height: 0px;
		padding: 0 10%;
	}
	.content_404 {
		padding: 30px 0;
	}
	
	.notLoggedIn {
		padding: 30px 0;
	}
}

/* Für Bildschirmgrößen kleiner als 350px */
@media (max-width: 350px) {
    .menu-button::after {
        content: " ☰"; /* Zeige nur das Symbol */
    }
	.footer {
		padding: 10px;
		width: calc(100% - 20px);
	}
}