:root {
  /* Angelehnt an LS25-HUD: dunkler Hintergrund, graue Panels, grünes Highlight */
  --bg: #1b1b1b;
  --bg-panel: #2a2a2a;
  --bg-panel-alt: #303030;
  --accent: #7fbf3f;
  --accent-soft: rgba(127, 191, 63, 0.18);
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --border: #3f3f3f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #232323 0, #111111 55%);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.9rem;
  background: #202020;
  border-bottom: 1px solid #3a3a3a;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.btn-steam-login {
  background: #171a21;
  color: #c7d5e0;
  border: 1px solid #3a3a3a;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-steam-login:hover {
  background: #1b2838;
  border-color: #66c0f4;
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav-btn {
  border: 1px solid #3a3a3a;
  background: #262626;
  color: var(--text-muted);
  padding: 0.2rem 0.7rem;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease,
    box-shadow 0.12s ease, transform 0.06s ease;
}

.nav-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.nav-btn.active {
  color: #111;
  background: var(--accent);
  border-color: var(--accent);
}

.nav-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 40px);
}

.sidebar {
  border-right: 1px solid var(--border);
  background: #222222;
  padding: 0.6rem;
  overflow-y: auto;
}

.sidebar h2 {
  margin-top: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-section {
  margin-top: 1.5rem;
}

.sidebar-section label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.sidebar-section input {
  width: 100%;
  margin-top: 0.25rem;
}

#apply-ph-filter {
  margin-top: 0.5rem;
  width: 100%;
}

.field-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.field-list li {
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.06s ease;
}


.field-list li:hover {
  background: #333333;
  border-color: var(--border);
  transform: translateX(1px);
}

.field-list li.active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.field-ph-chip {
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #1f2933;
}

.content {
  padding: 1.1rem 1.5rem 1.8rem;
  overflow: auto;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

h1 {
  margin-top: 0;
}


.grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--bg-panel);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.card h2 {
  margin-top: 0;
  font-size: 0.95rem;
}

#view-planning .card {
  margin-bottom: 0.75rem;
}

#activity-log,
#import-log {
  max-height: 220px;
  overflow: auto;
  font-size: 0.8rem;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.task-item label {
  font-size: 0.85rem;
}

.map {
  height: 480px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 320px;
  gap: 0.75rem;
}

.field-detail {
  background: var(--bg-panel);
  border-radius: 3px;
  border: 1px solid var(--border);
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
}

.field-detail h2 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.field-detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.field-detail-label {
  color: var(--text-muted);
}

.field-detail-value {
  font-weight: 500;
}

.field-detail-chip {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--border);
}

.legend {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  background: #202020;
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.legend-color {
  width: 18px;
  height: 10px;
  border-radius: 999px;
}

.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.form label {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

input,
select,
button,
textarea {
  font: inherit;
}

input,
select,
textarea {
  padding: 0.3rem 0.45rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: #111111;
  color: var(--text);
}

button {
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.12s ease, border-color 0.12s ease,
    box-shadow 0.12s ease, transform 0.06s ease;
}

button:hover {
  background: #6aa333;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

button:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 1px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.table th,
.table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid #272727;
}

.table th {
  text-align: left;
  color: var(--text-muted);
  background: #1f1f1f;
  font-weight: 500;
}

.table tbody tr:nth-child(even) {
  background: #202020;
}

.table tbody tr:hover {
  background: #2b2b2b;
}

#view-settings .card {
  max-width: 620px;
}

.hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}


.import-log {
  background: #181818;
  border-radius: 2px;
  border: 1px solid var(--border);
  padding: 0.5rem;
}

.note-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.note-item {
  padding: 0.35rem 0.6rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--bg-panel-alt);
}

.note-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.note-text {
  margin-top: 0.2rem;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
