/* =========================
   GLOBAL STYLE
========================= */
body {
    background: #0e0e0e;
    color: #f0f0f0;
    font-family: "Inter", Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

h1 {
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
}

/* =========================
   GRID LAYOUT
========================= */
#layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    height: 100vh;     /* ohne Scaling! */
}

/* =========================
   PERSONEN-POOL
========================= */
#person-pool {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

#person-pool h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.person-list {
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
}

.person-card {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #242424;
    border-radius: 8px;
    cursor: grab;
    font-size: 15px;
    border: 1px solid #333;
    min-height: 38px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: 0.2s ease;
}

.person-card:hover {
    background: #2e2e2e;
    border-color: #4a4a4a;
}

.person-card.invalid {
    border-color: #d34040;
}

.person-card.dragging {
    opacity: 0.4;
}

.agt-icon {
    margin-left: 6px;
    color: #1ec4ff;
    font-size: 15px;
}

/* =========================
   FAHRZEUGE
========================= */
#vehicles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
}


/* =========================
   FAHRZEUGKARTEN
========================= */
.vehicle {
    width: 300px;
    padding: 15px;
    border-radius: 12px;
    background: #1a1a1a;
    transition: 0.3s ease;
    box-shadow: 0 0 12px rgba(0,0,0,0.35);
    border: 1px solid #2b2b2b;
}

.vehicle.active {
    order: 0;
    background: #1e1e1e;
    border-color: #3c3c3c;
}

.vehicle.inactive {
    order: 999;
    background: #242424;
    border-color: #444;
}

/* Titel */
.vehicle h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

/* Stärkeanzeige */
.vehicle .strength {
    background: #101010;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #333;
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.9;
}

/* =========================
   SLOTS
========================= */
.slot {
    margin-bottom: 10px;
}

.slot-title {
    font-size: 13px;
    margin-bottom: 4px;
    opacity: .85;
}

.dropzone {
    min-height: 42px;
    background: #262626;
    border: 1px dashed #666;
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: center;
    transition: 0.2s ease;
}

.slot-valid .dropzone {
    border-color: #2de05a !important;
    background-color: rgba(45, 224, 90, 0.22) !important;
}

.slot-invalid .dropzone {
    border-color: #e04646 !important;
    background-color: rgba(224, 70, 70, 0.22) !important;
}

.slot-neutral .dropzone {
    border-color: #2de05a !important;
    background-color: rgba(45, 224, 90, 0.22) !important;
}

/* =========================
   ICONS
========================= */
.ue-icon {
    margin-left: 6px;
    color: #ffb347;
    font-size: 15px;
}

.jf-icon {
    margin-left: 6px;
    color: #e25303;
    font-size: 15px;
}

.ul-icon {
    margin-left: 6px;
    color: #F9A800;
    font-size: 15px;
}

/* =========================
   LINKER BEREICH
========================= */
#responsible-box {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #333;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
    width: 280px;
}

#responsible-box h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

#left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#total-count {
    background: #222;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #444;
    margin: 5px 0 12px 0;
    font-size: 14px;
    opacity: .9;
}


/* ===============================
   iPad FIX – globales Scaling
   =============================== */
@media (max-width: 1366px) {
    body {
        transform: scale(0.5);
        transform-origin: top left;
        width: 125%;       /* verhindert, dass rechts Platz verloren geht */
        height: 125%;      /* verhindert vertikale Lücken */
    }
}

.dropzone { position: relative; }

.confirmed-check {
    position: absolute;
    top: -6px;
    right: -6px;
    /* background: #32d46c; */
    color: #000;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 50%;
    border: 2px solid #0e0e0e;
    font-weight: bold;
    z-index: 10;
}
