/* style.css */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f0f2f5;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

.layout-toggle {
  text-align: center;
  margin-bottom: 1rem;
}

.layout-toggle label {
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  background-color: #dcdde1;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.layout-toggle label:hover {
  background-color: #b2bec3;
}

input[type="radio"] {
  display: none;
}

#grid:checked ~ .container .items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

#list:checked ~ .container .items {
  display: block;
}


.dashboard-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-right: 10px;
  vertical-align: middle;
}



.item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.item:hover {
  transform: scale(1.02);
}

.item label {
  display: block;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.item input[type="checkbox"] {
  display: none;
}


.item img {
  border-radius: 1px;
  background: white;
}



.item input:checked + label + .extra {
  max-height: 200px;
  margin-top: 0.5rem;
}

/* Login Styles */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-box {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 300px;
}

.login-box h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.login-box button {
  width: 100%;
  padding: 0.6rem;
  background: #0984e3;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-box button:hover {
  background: #74b9ff;
}

.error {
  color: red;
  font-size: 0.9rem;
  text-align: center;
}

















.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 60px;
  background-color: #2d3436;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  z-index: 100;
}

.sidebar a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  margin: 1.5rem 0;
  transition: color 0.2s ease;
}

.sidebar a:hover {
  color: #74b9ff;
}

body {
  padding-left: 70px; /* Platz für Sidebar */
}
