:root {
  --bg: #2c2f1f;         /* dunkleres Olivgrün Hintergrund */
  --card: #4a4f33;       /* etwas hellere Kartenfarbe */
  --accent: #a2b47c;     /* helles Tarngrün für Überschriften/Highlights */
  --muted: #d0c9a5;      /* Beige für Text/Labels */
  --success: #88b04b;    /* Olivgrün für Erfolge */
  --warn: #d9a066;       /* Orange-Braun für Warnungen */
  --slot: #5c6142;       /* Unterschiedliche Slot-Hintergrundfarbe */
  --person: rgba(255,255,255,0.07); /* Hintergrund Personeneinträge */
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, var(--bg) 0%, #1f2115 100%);
  color: var(--muted);
  padding: 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

h1, h2, h3 {
  color: var(--accent);
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  margin-bottom: 16px;  /* mehr Abstand zwischen Karten */
}

input[type=text], select, input[type=number], textarea {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: var(--muted);
}

select option {
  color: #000;
  background-color: #fff;
}

button {
  background: linear-gradient(180deg, var(--accent), #889974);
  border: none;
  color: #1a1a1a;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s;
}

button:hover {
  transform: scale(1.05);
}

.person {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: var(--person);
  margin-bottom: 10px;
}

.slot {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  border-radius: 8px;
  background: var(--slot);
  margin-bottom: 8px;
}

.tank {
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--card), var(--slot));
  margin-bottom: 12px;
}

.warn {
  color: var(--warn);
}

.success {
  color: var(--success);
}

.footer, .compact {
  font-size: 13px;
}

textarea {
  height: 120px;
}

.list {
  max-height: 360px;
  overflow: auto;
  margin-top: 12px;
}

.grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;  /* mehr Abstand zwischen linken & rechten Bereich */
}
/* --- Responsive Layout --- */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr; /* von zwei Spalten auf eine Spalte */
    gap: 16px;
  }

  .card {
    padding: 14px;
  }

  .row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .row label {
    flex: unset;
  }

  input[type=text], select, input[type=number], textarea {
    font-size: 14px;
  }

  button {
    width: 100%;
    padding: 10px;
  }

  .flex {
    flex-direction: column;
    align-items: stretch;
  }

  .tank {
    padding: 10px;
  }

  .list {
    max-height: 250px;
  }
}

@media (max-width: 500px) {
  body {
    padding: 12px;
  }

  h1 {
    font-size: 18px;
  }

  h2 {
    font-size: 16px;
  }

  h3 {
    font-size: 15px;
  }

  input[type=text], select, input[type=number], textarea {
    font-size: 13px;
    padding: 6px;
  }

  button {
    font-size: 13px;
    padding: 8px;
  }

  .slot, .person {
    padding: 6px;
  }
}
:root {
  --bg: #2c2f1f;         /* dunkleres Olivgrün Hintergrund */
  --card: #4a4f33;       /* hellere Kartenfarbe */
  --accent: #a2b47c;     /* helles Tarngrün für Überschriften/Highlights */
  --muted: #d0c9a5;      /* Beige für Text/Labels */
  --success: #88b04b;    /* Olivgrün für Erfolge */
  --warn: #d9a066;       /* Orange-Braun für Warnungen */
  --empty: #c14444;      /* Rot für leere/freie Plätze */
  --slot: #5c6142;       /* Slot-Hintergrund */
  --person: rgba(255,255,255,0.07); /* Hintergrund Personeneinträge */
}

.slot {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  border-radius: 8px;
  background: var(--slot);
  margin-bottom: 8px;
  color: var(--muted);
}

/* Hervorhebung für leere/freie Slots */
.slot .warn {
  color: #fff;
  background-color: var(--empty);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
