/* liste.css — gemeinsame Layout-/Listen-/Karten-/Formularelemente aller Seiten. */

.layout { display: flex; gap: 14px; align-items: flex-start; }
.layout .links { flex: 1 1 auto; min-width: 0; }
.layout .rechts { flex: 0 0 420px; }

main { max-width: 1200px; margin: 24px auto; padding: 0 16px; }

#karte { height: 520px; border-radius: 12px; overflow: hidden;
    box-shadow: 0 6px 24px rgba(50,40,20,.12); background: #e8e4d8;
    position: sticky; top: 14px; }

.empty { text-align: center; color: #a09880; padding: 40px; font-size: 15px; }

.err { margin: 14px 0; padding: 10px 14px; background: #fde8e8; color: #a03030; border-radius: 8px; display: none; }

.filterleiste { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
    background: #fff; border: 1px solid #e2dccc; border-radius: 4px;
    padding: 8px 12px; margin-bottom: 10px; font-size: 12.5px; color: #5a5240; }

.filterleiste #filterReset { border: 0; background: none; cursor: pointer;
    color: #a09880; font-size: 15px; margin-left: auto; }

.filterleiste .fsel { padding: 4px 6px; border: 1px solid #d8cfbc;
    border-radius: 3px; font: inherit; background: #fdfbf5; }

.filterleiste .fsuch { width: 90px; padding: 4px 8px; border: 1px solid #d8cfbc;
    border-radius: 3px; font: inherit; background: #fdfbf5; }

.filterleiste label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

.kachel { flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; padding: 10px 8px 8px;
    background: #fff; border: 1.5px solid #e8e0d0;
    border-radius: 3px; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    box-shadow: 0 1px 3px rgba(50,40,20,.06);
    position: relative;
    color: #5a5240; }

.kachel .iconplatz { width: 32px; height: 32px;                 /* fixer Icon-Platz */
    display: flex; align-items: center; justify-content: center;
    color: var(--kachel-farbe, #b8a05a); }

.kachel .iconplatz svg { width: 32px; height: 32px; display: block; }

.kachel .klabel { font-size: 10px; font-weight: 600; text-align: center;
    line-height: 1.25; color: #5a5240; user-select: none; }

.kachel .zaehler { position: absolute; top: -8px; right: -6px;
    min-width: 22px; height: 22px; padding: 0 5px;
    display: flex; align-items: center; justify-content: center;
    background: #3a3223; color: #fff;
    font-size: 11.5px; font-weight: 700;
    border-radius: 5.5px;
    box-shadow: 0 1px 4px rgba(0,0,0,.25); }

.kachel .zaehler.offen { background: #c05830; }

.kachel.active { border-color: var(--kachel-farbe, #b8a05a);
    box-shadow: 0 0 0 1px var(--kachel-farbe, #b8a05a), 0 6px 16px rgba(50,40,20,.12);
    background: #fdfbf5; }

.kachel:hover { transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(50,40,20,.12);
    border-color: var(--kachel-farbe, #b8a05a); }

.karteninfo { font-size: 12px; color: #a09880; margin-top: 6px; text-align: center; }

.layout { display: flex; gap: 18px; align-items: flex-start; }

.layout .links { flex: 1 1 auto; min-width: 0; }

.layout .rechts { flex: 0 0 420px; }

.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 16px 0; font-size: 14px; color: #5a5240; }

.pager button { background: #fff; border: 1.5px solid #d8d0c0; border-radius: 6px; padding: 6px 14px; cursor: pointer; }

.pager button:disabled { opacity: .4; cursor: default; }

.toolbar { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; flex-wrap: wrap; }

.toolbar button { background: #b8a05a; border: 0; color: #fff; padding: 9px 18px;
    border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; }

.toolbar button.neu { background: #5a7a4a; }

.toolbar input:focus { border-color: #b8a05a; }

.toolbar input[type="search"] { flex: 1; min-width: 200px; padding: 10px 12px; font-size: 14px;
    border: 1.5px solid #d8d0c0; border-radius: 8px; background: #fff; outline: none; }

.toolbar select { padding: 9px 10px; border: 1.5px solid #d8d0c0; border-radius: 8px;
    background: #fff; font-size: 14px; outline: none; }

/* Kachelreihe (wie Portal) */
  .kachelreihe { display: flex; flex-wrap: nowrap; gap: 8px; }

header select { background: #4a4232; color: #fff; border: 1px solid #5a5240;
    border-radius: 6px; padding: 7px 10px; font-size: 13px; outline: none; }

main { max-width: 1200px; margin: 24px auto; padding: 0 16px; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 18px rgba(50,40,20,.08); }

tbody tr:hover { background: #faf6ea; }

td { padding: 10px 12px; font-size: 14px; border-top: 1px solid #eee8dc; }

td.nr { font-weight: 600; color: #3a3223; white-space: nowrap; }

th { background: #e8e0d0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #5a5240; text-align: left; padding: 10px 12px; }

tr { cursor: pointer; }

@media (max-width: 900px) { .layout { flex-direction: column; }

@media (max-width: 900px) { .layout { flex-direction: column; }

/* Aktionszelle: Pin = Auf Karte zeigen, Stift = Bearbeiten */
td.aktionen { white-space: nowrap; text-align: right; }
td.aktionen button { border: 0; background: none; cursor: pointer; color: #8a8070;
  padding: 3px 4px; border-radius: 3px; vertical-align: middle; }
td.aktionen button:hover { color: var(--farbe-gold, #b8a05a); background: #efe8d6; }
td.aktionen button.a-bearb:hover { color: #4a6a9a; }

/* Bearbeiten-Modal (Felder 1:1 Legacy) */
#bearb-modal .bearb-box { width: min(640px, 92vw); height: auto; max-height: 86vh;
  overflow: auto; }
.bearb-form { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.bearb-form .feld { display: flex; align-items: center; gap: 10px; }
.bearb-form .feld label { flex: 0 0 160px; font-size: 13px; color: #5a5240; }
.bearb-form .feld input, .bearb-form .feld select { flex: 1; padding: 6px 9px;
  border: 1px solid #d8cfbc; border-radius: 3px; font: inherit; background: #fff; }
.bearb-actions { display: flex; gap: 10px; justify-content: flex-end;
  padding: 10px 16px 16px; }
.bearb-actions button { padding: 7px 18px; border: 0; border-radius: 3px;
  cursor: pointer; font: inherit; font-weight: 600; }
.bearb-actions .bearb-speichern { background: var(--farbe-gold, #b8a05a); color: #fff; }
.bearb-actions .bearb-abbrechen { background: #e2dccc; color: #3a3223; }
.bearb-fehler { margin: 0 16px 8px; padding: 8px 12px; background: #fde8e8;
  color: #a03030; border-radius: 4px; font-size: 13px; }
