/* SEGELKEN — Stammdaten (HERO-Ablösung, Baustein 3). Ergänzt kontakte.css um Reiter, Preistabellen und die Kalkulation. */
.reiter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--grau-hell); border-radius: 8px; padding: 2px; }
.reiter button { background: none; border: 0; border-radius: 6px; padding: 7px 2px; font-size: 12.5px; font-weight: 500; color: var(--dim); }
.reiter button.an { background: var(--bg); color: var(--gruen-dunkel); box-shadow: 0 0 0 1px var(--linie); }

.tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.tab th { text-align: left; font-weight: 500; font-size: 12px; color: var(--dim); padding: 4px 8px 6px 0; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.tab td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--grau-hell); vertical-align: top; overflow-wrap: anywhere; }
.tab tr:last-child td { border-bottom: 0; }
.tab .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 0; }
.tab th.r { padding-right: 0; }
.tab tfoot td { border-top: 1px solid var(--linie); border-bottom: 0; font-weight: 500; color: var(--kopf); }
.tab small { display: block; color: var(--dim); font-size: 12px; }
.tab-rahmen { overflow-x: auto; }
.preis-gross { font-size: 22px; font-weight: 500; color: var(--kopf); font-variant-numeric: tabular-nums; }
.text-block b { font-weight: 600; color: var(--kopf); }
.text-block { white-space: pre-line; font-size: 14px; overflow-wrap: anywhere; }
.zahlen { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: baseline; }
.zahlen div { display: flex; flex-direction: column; }
.zahlen span { font-size: 12px; color: var(--dim); }
.zahlen b { font-weight: 500; color: var(--kopf); font-variant-numeric: tabular-nums; }

/* Kalkulation im Formular */
.kalk { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kalk-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 92px 150px 96px 32px; gap: 8px; align-items: center; font-size: 14px; }
.kalk-zeile .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }
.kalk-zeile .name small { color: var(--dim); }
.kalk-zeile input, .kalk-zeile select { padding: 7px 8px; }
.kalk-zeile .sum { text-align: right; font-variant-numeric: tabular-nums; }
.kalk-zeile .weg { background: none; border: 0; color: var(--rot); font-size: 18px; line-height: 1; padding: 4px; }
.kalk-neu { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: relative; }
.kalk-neu .feld { flex: 1 1 220px; width: auto; }
.vorschlaege { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--bg); border: 1px solid var(--linie); border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.14); max-height: 260px; overflow-y: auto; }
.vorschlaege button { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 8px 12px; font-size: 14px; }
.vorschlaege button:hover, .vorschlaege button:focus { background: var(--grau-hell); }
.vorschlaege i { font-style: normal; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kalk-summe { display: flex; justify-content: flex-end; gap: 24px; font-size: 14px; padding-top: 8px; border-top: 1px solid var(--linie); }
.kalk-summe b { font-variant-numeric: tabular-nums; color: var(--kopf); }

@media (max-width: 860px) {
  .kalk-zeile { grid-template-columns: minmax(0, 1fr) 80px 32px; }
  .kalk-zeile .gruppe, .kalk-zeile .sum { grid-column: 1 / -1; }
  .kalk-zeile .sum { text-align: left; }
}
