body { font-family: Arial, sans-serif; padding: 20px; background: #f6f7fb; color: #111; }
.container { max-width: 1100px; margin: 0 auto; }
.header { background: #1f2937; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.header__inner { max-width: 1100px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 700; color: #fff; text-decoration: none; }
.nav .btn { background: #2563eb; color: #fff; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.nav .btn:hover { background: #1e40af; }

h1 { margin: 16px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; text-decoration: none; color: inherit; transition: background .2s, transform .05s; }
.card:hover { background: #eef2ff; transform: translateY(-1px); }

.table { border-collapse: collapse; width: 100%; margin: 12px 0 24px; background: #fff; }
.table th, .table td { border: 1px solid #e5e7eb; padding: 8px; text-align: left; }
.table th { background: #f3f4f6; }

.filters { display: flex; gap: 12px; align-items: center; margin: 10px 0 16px; }
.filters select, .filters button { padding: 6px 10px; }
.btn { background: #2563eb; color: #fff; border: none; border-radius: 8px; cursor: pointer; }
.btn:hover { background: #1e40af; }

.page-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.link-back { text-decoration: none; color: #2563eb; }
.link-back:hover { text-decoration: underline; }

/* Karten breiter machen */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* vorher 260px */
  gap: 12px;
}

/* Karte optisch etwas großzügiger */
.card { padding: 16px; }

/* Tabelle kompakter */
.table.mini { margin-top: 10px; font-size: 14px; width: 100%; }
.table.mini th:first-child, .table.mini td:first-child { width: 55%; }

/* Auslastungsfarben (Hintergrund + dezente Randfarbe) */
.table.mini tr.occ-na       { background: #f9fafb; }                    /* kein Wert */
.table.mini tr.occ-ok       { background: #e8f6ee; border-left: 4px solid #22c55e; } /* <90% */
.table.mini tr.occ-warn     { background: #fff6e5; border-left: 4px solid #f59e0b; } /* 90–94% */
.table.mini tr.occ-high     { background: #ffe9e5; border-left: 4px solid #fb923c; } /* 95–97% */
.table.mini tr.occ-veryhigh { background: #ffe5e5; border-left: 4px solid #ef4444; } /* 98–99% */
.table.mini tr.occ-max      { background: #fde2e2; border-left: 4px solid #b91c1c; } /* 100% */

.table.mini td, .table.mini th { border: 1px solid #e5e7eb; padding: 8px; }
.table.mini th { background: #f3f4f6; }

.section { margin-top: 28px; }
.section h2 { margin: 8px 0 12px; font-size: 20px; }

.kpis { margin: 8px 0 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.kpi { display: inline-block; padding: 6px 10px; border-radius: 999px; border: 1px solid #e5e7eb; font-weight: 600; }
.kpi.neutral { background: #f3f4f6; }
.kpi.sold-pos { background: #fee2e2; border-color: #ef4444; } /* sichtbar, wenn Verkäufe > 0 */
