:root {
  --reitz-blue: #002d5b;
  --reitz-blue-dark: #001a33;
  --reitz-grey: #e5e8ec;
}
.reitz-app, .reitz-app * { box-sizing: border-box; }
.reitz-app {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--reitz-blue-dark);
  line-height: 1.35;
  font-size: 14px;
}
.reitz-app .container {
  max-width: 950px;
  width: 100%;
  margin: 16px auto 12px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 14px rgba(0,0,0,0.06);
  padding: 16px 14px;
}
.reitz-app .layout-2col { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: stretch; }
@media (min-width: 1024px) { .reitz-app .layout-2col { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.reitz-app .card { background: #fff; border-radius: 10px; box-shadow: 0 0 14px rgba(0,0,0,0.06); padding: 14px 14px 12px 14px; height: 100%; display: flex; flex-direction: column; }
.reitz-app h1 {
  color: var(--reitz-blue);
  font-size: 22px;
  margin: 0 0 8px 0;
  letter-spacing: .01em;
  line-height: 1.25;
}
.reitz-app h2 {
  color: var(--reitz-blue-dark);
  font-size: 16px;
  margin: 16px 0 8px 0;
  font-weight: 600;
  line-height: 1.3;
}
.reitz-app .explain {
  font-size: 13px;
  color: #444;
  margin: 4px 0 8px 0;
  line-height: 1.35;
  font-style: italic;
}
.reitz-app .regelungsarten-info {
  margin: 14px 0 0 0;
  background: #f7f9fb;
  padding: 10px 12px;
  color: #444;
  font-size: 13.5px;
  border-radius: 6px;
}
.reitz-app .flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.reitz-app .panel {
  background: var(--reitz-grey);
  border-radius: 8px;
  padding: 12px;
  width: 100%;
}
.reitz-app .panel label {
  font-weight: 600;
  color: var(--reitz-blue);
  margin-bottom: 2px;
  display: block;
  font-size: 13.5px;
}
.reitz-app .panel input[type=number] {
  width: 100px;
  padding: 5px 6px;
  font-size: 14px;
  border: 1px solid #bbb;
  border-radius: 4px;
  margin: 0 10px 8px 0;
  background: #fff;
}

.reitz-app .teillast-flex { display: block; margin-bottom: 10px; }
.reitz-app .teillast-table {
  width: 100%;
  background: var(--reitz-grey);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}
.reitz-app .teillast-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.reitz-app .teillast-table th, .reitz-app .teillast-table td {
  padding: 6px 6px;
  font-size: 14px;
  vertical-align: middle;
  text-align: left;
}
.reitz-app .teillast-table th {
  color: var(--reitz-blue);
  font-weight: 600;
  border-bottom: 1px solid #c3c8d0;
}
.reitz-app .teillast-table th:nth-child(1),
.reitz-app .teillast-table td:nth-child(1) {
  width: 26%;
  color: var(--reitz-blue-dark);
  font-weight: 500;
  white-space: nowrap;
}
.reitz-app .teillast-table th:nth-child(2),
.reitz-app .teillast-table td:nth-child(2) { width: 54%; }
.reitz-app .teillast-table th:nth-child(3),
.reitz-app .teillast-table td:nth-child(3) { width: 20%; }

.reitz-app .teillast-slider {
  width: 100%;
  max-width: 320px;
  margin: 0;
  accent-color: var(--reitz-blue);
}
.reitz-app .teillast-input {
  width: 56px;
  font-size: 14px;
  padding: 4px 5px;
  border: 1px solid #bbb;
  border-radius: 6px;
  text-align: right;
  background: #fff;
}

.reitz-app .teillast-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}
.reitz-app .teillast-sum {
  font-weight: 600;
  margin-top: 6px;
  font-size: 14px;
  text-align: left;
}
.reitz-app .teillast-sum.ok { color: #1a8a3a; }
.reitz-app .teillast-sum.err { color: #c00; }

.reitz-app .center { text-align: center; }
.reitz-app button {
  margin: 12px 0 0 0;
  padding: 10px 18px;
  font-size: 14px;
  background: var(--reitz-blue);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.reitz-app button:hover { background: var(--reitz-blue-dark); }

.reitz-app .table-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }

.reitz-app table.ergebnis {
  margin: 12px 0 0 0;
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.06);
  border-radius: 8px;
  overflow: hidden;
  min-width: 720px;
}
.reitz-app table.ergebnis th, .reitz-app table.ergebnis td {
  border: 1px solid #d3d7df;
  padding: 8px 10px;
  text-align: right;
  font-size: 13.5px;
  white-space: nowrap;
}
.reitz-app table.ergebnis th {
  background: var(--reitz-blue);
  color: #fff;
  text-align: center;
  font-weight: 600;
}
.reitz-app table.ergebnis td:first-child {
  text-align: left;
  color: var(--reitz-blue-dark);
  font-weight: 600;
  white-space: normal;
}
.reitz-app table.ergebnis th small {
  display: block;
  font-weight: 400;
  opacity: 0.95;
  margin-top: 2px;
}

.reitz-app tr.best-row { background: #e9f8f0 !important; }
.reitz-app tr.best-row td {
  border-top: 2px solid #bfead2;
  border-bottom: 2px solid #bfead2;
  font-weight: 700;
}
.reitz-app tr.best-row td:first-child { color: #0e8a52; }
.reitz-app .badge-best {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: #e7f7ee;
  color: #0e8a52;
  border: 1px solid #cfe9dd;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}

.reitz-app .notice {
  display: none;
  margin: 0 0 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff6e5;
  border: 1px solid #f2cf8d;
  color: #7a4d00;
}
.reitz-app .notice b { color: #5a3a00; }

.reitz-app .spacer { height: 20px; }

/* Kartenansicht (kompakt) */
.reitz-app .ergebnis-cards { display: none; }
.reitz-app .ergebnis-card {
  border: 1px solid #d3d7df;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.06);
  overflow: hidden;
  background: #fff;
}
.reitz-app .ergebnis-card-header {
  background: var(--reitz-blue);
  color: #fff;
  padding: 8px 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.reitz-app .ergebnis-card-header .title { display: inline-flex; align-items: center; gap: 6px; }
.reitz-app .ergebnis-card-body { padding: 10px 12px; }
.reitz-app .card-section { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e5e8ec; }
.reitz-app .card-section:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.reitz-app .card-section h4 { margin: 0 0 6px 0; font-size: 13.5px; color: var(--reitz-blue); font-weight: 700; }
.reitz-app .ergebnis-card dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0; font-size: 13.5px; }
.reitz-app .ergebnis-card dt { color: var(--reitz-blue-dark); font-weight: 600; }
.reitz-app .ergebnis-card dd { margin: 0; text-align: right; }

.reitz-app .best-card { border-color: #bfead2; }
.reitz-app .best-card .ergebnis-card-body { background: #e9f8f0; }

/* Responsiv kompakt */
@media (max-width: 900px) {
  .reitz-app .flex-row { gap: 8px; }
}
@media (max-width: 760px) {
  .reitz-app .container { padding: 14px 12px; }
  .reitz-app h1 { font-size: 20px; }
  .reitz-app .teillast-table th:nth-child(1),
  .reitz-app .teillast-table td:nth-child(1) { width: 32%; }
  .reitz-app .teillast-table th:nth-child(2),
  .reitz-app .teillast-table td:nth-child(2) { width: 48%; }
  .reitz-app .teillast-table th:nth-child(3),
  .reitz-app .teillast-table td:nth-child(3) { width: 20%; }
  .reitz-app .teillast-slider { max-width: 240px; }
  .reitz-app table.ergebnis th, .reitz-app table.ergebnis td { padding: 7px 8px; font-size: 13px; }
  .reitz-app .table-scroll { display: none; }
  .reitz-app .ergebnis-cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
}
@media (max-width: 480px) {
  .reitz-app .panel input[type=number] { width: 100%; max-width: 100%; }
  .reitz-app .teillast-input { width: 52px; }
  .reitz-app button { width: 100%; }
}


