/* Reset & Basis */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f5f7fa;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 80px;
}

/* Überschrift */
h1 {
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 40px;
  color: #222;
  text-align: center;
}

/* Settings Button kleiner und oben rechts */
.settings {
  position: fixed;
  top: 60px;
  right: 60px;
  width: 2.8rem;
  height: 2.8rem;
}

.settings button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.settings button:hover {
  background-color: #e1e5eb;
}

.settings img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Container-Wrapper: alle in einer Reihe */
.container-grid {
  display: flex;
  flex-direction: row;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  padding-bottom: 10px;
  justify-content: center;
  flex-wrap: nowrap; /* keine Umbrüche */
  padding-top: 20px;
}

/* Einzelne Container (Boxen) */
.container-grid > div {
  flex: 0 0 280px; /* fixe Breite von 280px */
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 30px 20px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 240px;
}

.container-grid > div:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* Logo größer oben */
.container-grid > div img {
  width: 96px;
  height: 96px;
  margin-bottom: 25px;
  object-fit: contain;
  border-radius: 12px;
}

/* Button unter Logo */
.container-grid > div a button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  max-width: 220px;
  transition: background-color 0.25s ease;
}

.container-grid > div a button:hover {
  background-color: #2563eb;
}

/* Logout-Button zentriert unter Containern */
.logout-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.logout-container a {
  font-weight: 700;
  color: #ef4444;
  text-decoration: none;
  font-size: 1.2rem;
  border: 2px solid #ef4444;
  padding: 12px 36px;
  border-radius: 12px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.logout-container a:hover {
  background-color: #ef4444;
  color: white;
}

/* Responsive: bei sehr kleinen Bildschirmen wird scrollbar sichtbar */
@media (max-width: 1150px) {
  .container-grid {
    padding-bottom: 20px;
  }
}

/* Optional: bei extra kleinen Displays kann man auch Flex-Wrap aktivieren */

@media (max-width: 700px) {
  .container-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .container-grid > div {
    flex: 1 1 280px;
    max-width: 280px;
  }
}