* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #f0f2f5;
}

/* Layout mit Sidebar und Main */
.layout {
  display: flex;
  height: 100vh;
}

/* Seitenmenü */
.sidebar {
  width: 220px;
  background-color: #6e6e6e;
  color: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar h2 {
font-size: 2rem;
  margin-bottom: 0.4rem;
  color: #55677f;
}

.sidebar nav button  {
  background-color: #3f4d63;
  color: white;
  border: none;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
  text-align: left;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease-in-out;
}

.sidebar nav button:hover, .sidebar nav button.active {
  background-color: #55677f;
}

/* Hauptbereich */
.main {
  flex: 1;
  background-color: white;
  padding: 0;
  overflow: hidden;
}

/* Iframe füllt den Hauptbereich */
iframe {
  width: 100%;
  height: 100%;
  border: none;
}
@keyframes backgroundPulse {
  0% {
    background-color: #444;
  }
  50% {
    background-color: #666;
  }
  100% {
    background-color: #444;
  }
}

.changing-background {
  animation: backgroundPulse 6s ease-in-out infinite;
  transition: color 1s ease;
}

@keyframes slideAndSpin {
  0% {
    left: 0;
    transform: rotate(0deg);
    background-color: #444;
    opacity: 0;
  }
  50% {
    left: calc(100% - 40px); /* Bildschirmbreite minus Quadratbreite */
    transform: rotate(180deg);
    background-color: crimson;
    opacity: 0.8;
      box-shadow: 6px 6px 10px #333;
  }
  100% {
    left: 0;
    transform: rotate(360deg);
    background-color: #444;
    opacity: 0;
  }
}

.moving-square {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 40px;
  height: 40px;
  animation: slideAndSpin 8s linear infinite;
  border-radius: 4px;
  z-index: 1;
}