* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
    font-size: clamp(8px, 1.5vw, 16px);
    text-wrap: balance;
}

body {
    background-color: #435165;
}
body.loginInterface {
    background-image: url('pictures/login_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    overflow: hidden; /* Verhindert Scrollen */
}
body.loggedin {
	background-color: #f3f4f7;
}
.login {
    width: 400px;
    background-color: #ffffff;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    margin: 100px auto;
}

.login h1 {
    text-align: center;
    color: #5b6574;
    font-size: 24px;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #dee0e4;
}

.login form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
}

.login form label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #3274d6;
    color: #ffffff;
}

.login form input[type="password"],
.login form input[type="text"] {
    width: 310px;
    height: 50px;
    border: 1px solid #dee0e4;
    margin-bottom: 20px;
    padding: 0 15px;
}

.login form input[type="submit"] {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #3274d6;
    border: 0;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.2s;
}

.login form input[type="submit"]:hover {
    background-color: #2868c7;
    transition: background-color 0.2s;
}

.navtop {
    background-color: #2f3947;
    padding: 10px 0;
    border: 0;
    position: fixed; /* Fixiert die Navigation */
    top: 0; /* Oben auf der Seite */
    left: 0;
    width: 100%; /* Volle Breite */
    z-index: 1000; /* Stellt sicher, dass sie über anderen Elementen liegt */
}
.navtop div {
display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.navtop div h1, .navtop div a {
	display: inline-flex;
	align-items: center;
}
.navtop div h1 {
	flex: 1;
	font-size: clamp(12px, 1.5vw, 24px);
	padding: 0;
	margin: 0;
	color: #eaebed;
	font-weight: normal;
}
.navtop div a {
	padding: 0 20px;
	text-decoration: none;
	color: #c1c4c8;
	font-weight: bold;
}
.navtop div a i {
	padding: 2px 8px 0 0;
}
.navtop div a:hover {
	color: #eaebed;
}
.content {
    max-width: 1200px;
    margin: 40px auto 20px auto; /* 40px (ehm. 80px) Platz für die fixe Navbar */
    padding: 20px;
    border-radius: 8px;
}
.content h2 {
	margin: 0;
	padding: 25px 0;
	font-size: clamp(10px, 1.5vw, 22px);
	border-bottom: 1px solid #e0e0e3;
	color: #4a536e;
}
.content > p, .content > div {
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
	margin: 25px 0;
	padding: 25px;
	background-color: #fff;
}
.content > p table td, .content > div table td {
	padding: 5px;
}
.content > p table td:first-child, .content > div table td:first-child {
	font-weight: bold;
	color: #4a536e;
	padding-right: 15px;
}
.content > div p {
	padding: 5px;
	margin: 0 0 10px 0;
}

.content > button {
    border-radius: 100%;
}


/* Container für die Buttons bei HOME*/
.nav-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; /* Abstand zwischen den Buttons */
    justify-items: center; /* Zentriert die Buttons */
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}

/* Standard-Stil für die Buttons */
.btn {
    padding: 20px;
    border: none;
    border-radius: 15px;
    color: white;
    background-color: magenta;
    font-size: 16px;
    cursor: pointer;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column; /* Stapelt Icon und Text */
    align-items: center; /* Zentriert horizontal */
    justify-content: center; /* Zentriert vertikal */
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center; /* Text zentrieren */
}

/* Icon-Styling */
.btn i {
    font-size: 50px; /* Größere Icons */
    margin-bottom: 10px; /* Abstand zum Text */
}

/* Farben für die Buttons */
.btn-light { background-color: #d7e9fb; color: black; } /* Hellblau/Weiß */
.btn-dark  { background-color: #1E293B; } /* Dunkles Blau */
.btn-red  { background-color: #d60000; } /* Dunkel Rot */
/* Wartungs-Button (deaktiviert & ausgegraut) */
.btn-wartung {
    background-color: #d3d4d6; /* Grauton */
    color: #9a9ca0; /* Dunklerer Grauton für Text */
    cursor: not-allowed; /* Zeigt an, dass der Button nicht klickbar ist */
    opacity: 0.6; /* Leicht transparent */
    pointer-events: none; /* Deaktiviert alle Klicks */
}


/* Hover-Effekt */
.btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Media Query für größere Bildschirme */
@media (min-width: 1024px) {
    .nav-container {
      grid-template-columns: repeat(3, 1fr); /* Maximal 3 Spalten */
    }
  }