* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f0f4f8;
  color: #1a202c;
  min-height: 100vh;
}

header {
  background: linear-gradient(135deg, #0f766e, #134e4a);
  color: white;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  flex-wrap: wrap;
  gap: 10px;
}
.header-left { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.header-left h1 { font-size: 1.2rem; font-weight: 600; }
.header-logo { font-size: 1.6rem; }
.header-right { display: flex; align-items: center; gap: 16px; font-size: 0.9rem; opacity: 0.95; }
#date { font-weight: 500; font-size: 0.85rem; opacity: 0.8; }
#clock { font-weight: 600; font-size: 1rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.status-dot.offline { background: #f87171; box-shadow: 0 0 6px #f87171; }
.logout-btn { background: rgba(255,255,255,0.15); border: none; color: white; padding: 5px 12px; border-radius: 6px; cursor: pointer; font-size: 0.82rem; }
.logout-btn:hover { background: rgba(255,255,255,0.28); }

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px;
}

.tiles { display: flex; gap: 18px; flex-wrap: wrap; }
.tile {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 24px;
  flex: 1;
  min-width: 220px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.tile-icon { font-size: 2rem; margin-bottom: 10px; }
.tile-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; color: #134e4a; }
.tile-sub { font-size: 0.82rem; color: #888; }

.card { background: white; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.07); overflow: hidden; margin-top: 20px; }
.card-head { padding: 12px 18px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #555; border-bottom: 1px solid #f1f5f9; }
.card-body { padding: 18px; }

/* Login-Seite */
.login-wrap { max-width: 340px; margin: 12vh auto 0; }
.login-box { background: white; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); padding: 32px 28px; text-align: center; }
.login-box .logo { font-size: 2.4rem; margin-bottom: 8px; }
.login-box h1 { font-size: 1.15rem; color: #134e4a; margin-bottom: 20px; }
.login-box input {
  width: 100%; padding: 10px 12px; margin-bottom: 12px;
  border: 1px solid #d0e0dd; border-radius: 8px; font-size: 0.9rem;
}
.login-box button {
  width: 100%; padding: 11px; background: #0f766e; color: white; border: none;
  border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.login-box button:hover { background: #134e4a; }
#login-error { color: #dc2626; font-size: 0.82rem; margin-bottom: 10px; display: none; }

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th { text-align: left; padding: 8px 10px; background: #f0fdfa; color: #0f766e; font-size: 0.75rem; text-transform: uppercase; border-bottom: 1px solid #e0e0e0; }
td { padding: 8px 10px; border-bottom: 1px solid #f5f5f5; }
