html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #f3f3f3;
  border-bottom: 1px solid #ddd;
}

.nav-item {
  margin-right: 15px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

  .nav-item:hover {
    color: #0078d4;
  }

.nav-right .logout {
  color: #b00020;
}

.nav-user {
  margin-right: 15px;
  font-weight: bold;
}

/* --- Win11 Navbar --- */

.win11-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.55); /* Mica Light */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1000;
}

.nav-spacer {
  height: 60px; /* verhindert Überlappung */
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
}

.nav-btn {
  padding: 8px 14px;
  margin-right: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  transition: background 0.2s, color 0.2s;
}

  .nav-btn:hover {
    background: rgba(0, 0, 0, 0.06);
  }

.logout {
  color: #b00020;
}

  .logout:hover {
    background: rgba(176, 0, 32, 0.12);
  }

.nav-user {
  margin-right: 12px;
  font-weight: 600;
  color: #333;
}

/* Seite vertikal zentrieren */
.page-container {
  min-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Win11 Login Box */
.login-box {
  padding: 30px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
  width: 350px;
}
/* Dashboard Container */
.dashboard-container {
  padding: 20px;
}

.dashboard-grid {
  display: flex !important;
  flex-direction: row !important;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

.dash-tile {
  flex: 0 1 260px; /* 260px breite Kachel */
  max-width: 260px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: 0.2s;
}

  .dash-tile:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-3px);
  }

.tile-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.tile-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.tile-desc {
  font-size: 14px;
  opacity: 0.7;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  padding: 25px 30px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  width: 320px;
  text-align: center;
}

  .popup-box h4 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
  }

  .popup-box button {
    margin-top: 15px;
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: #0078d4;
    color: white;
    cursor: pointer;
    font-size: 15px;
  }

    .popup-box button:hover {
      background: #006cbe;
    }

    .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dash-tile {
    display: block;
    padding: 20px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    text-align: center;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.dash-tile:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-3px);
}

.profile-container {
  padding: 20px;
}

.profile-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 800px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.profile-label {
  font-weight: 600;
}

.profile-value {
  opacity: 0.8;
}

.profile-message {
  margin-top: 20px;
  padding: 12px;
  background: #0078d4;
  color: white;
  border-radius: 8px;
  max-width: 500px;
}

.btn-primary {
  margin-top: 15px;
  padding: 10px 20px;
  background: #0078d4;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

  .btn-primary:hover {
    background: #006cbe;
  }


