
/* === GLASMORPHISM V5 – 100% RESPONSIV UND PROFESSIONELL === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --font-main: 'Inter', sans-serif;
  --bg-gradient: linear-gradient(135deg, #c9d6ff, #e2e2e2);
  --glass: rgba(255, 255, 255, 0.15);
  --glass-strong: rgba(255, 255, 255, 0.25);
  --text-dark: #111;
  --text-light: #fff;
  --blue: #0056b3;
  --green: #2e7d32;
  --red: #c62828;
  --radius: 18px;
  --blur: 12px;
  --max-width: 960px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

body {
  font-family: var(--font-main);
  font-size: 18px;
  background: var(--bg-gradient);
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 3vh 5vw;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  background: var(--glass);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  padding: 3rem;
}

h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

form {
  margin-bottom: 2rem;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  color: var(--text-dark);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}

button {
  width: 100%;
  padding: 16px;
  background: var(--glass-strong);
  color: var(--text-dark);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

button:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

table {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

table th, table td {
  padding: 18px;
  font-size: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

table th {
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.35);
}

a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
a:hover {
  text-decoration: underline;
}

.success {
  color: var(--green);
  font-weight: 500;
  margin-bottom: 1rem;
}

.error {
  color: var(--red);
  font-weight: 500;
  margin-bottom: 1rem;
}

.center {
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body {
    padding: 2vh 4vw;
    font-size: 16px;
  }

  .container {
    padding: 2rem;
  }

  h1, h2, h3 {
    font-size: 1.5rem;
  }

  input, select, textarea, button {
    font-size: 1rem;
  }

  table th, table td {
    font-size: 0.9rem;
    padding: 12px;
  }
}



/* === ERWEITERUNG – Buttons, Tabellen, Struktur-Wrapper, Icons, Logout, UTF-optimiert === */

/* Buttons verbessert */
button {
  width: 100%;
  padding: 18px;
  background: var(--glass-strong);
  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

button:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Tabellen zentriert & responsive scroll bei Überlauf */
table th, table td {
  padding: 16px;
  font-size: 1rem;
  text-align: center;
  vertical-align: middle;
}

.responsive-table {
  overflow-x: auto;
  display: block;
  width: 100%;
}

/* Struktur-Wrapper für Dashboards */
.dashboard {
  margin-top: 40px;
}

.boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 2rem;
}

.card {
  flex: 1 1 300px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
}

/* Lucide Icons (optional) */
.icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 1rem;
}

/* Logout Stil */
.logout-message {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 2rem;
  color: var(--text-dark);
}

/* Animation für Button oder Karten */
.fade-in {
  animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
