/*
 * TravTools · © MUNLabs
 * Deffcall & Verteidigung
 * Verteidigungsseiten, Deffcalls, EP, Angriffe und zugehörige Speziallayouts.
 */


/* Extrahiert aus verteidigung_deffcalls_zwischendeff.php */
.snipe-time-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.snipe-row { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.03); padding: 4px 8px; border-radius: 4px; border-left: 2px solid var(--accent); }
.snipe-lbl { font-size: 10px; text-transform: uppercase; color: var(--tt-muted); font-weight: 700; width: 50px; }
.snipe-val { font-family: monospace; font-size: 13px; color: #fff; font-weight: 700; }
.red-bold { color: var(--red); font-weight: 900; }

/* Extrahiert aus verteidigung_deffcalls_zwischendeff1.php */
.snipe-time-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.snipe-row { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.03); padding: 4px 8px; border-radius: 4px; border-left: 2px solid var(--accent); }
.snipe-lbl { font-size: 10px; text-transform: uppercase; color: var(--tt-muted); font-weight: 700; width: 50px; }
.snipe-val { font-family: monospace; font-size: 13px; color: #fff; font-weight: 700; }
.red-bold { color: var(--red); font-weight: 900; }

/* Extrahiert aus verteidigung_deffcalls_zwischendeff2.php */
.snipe-time-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.snipe-row { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.03); padding: 4px 8px; border-radius: 4px; border-left: 2px solid var(--accent); }
.snipe-lbl { font-size: 10px; text-transform: uppercase; color: var(--tt-muted); font-weight: 700; width: 50px; }
.snipe-val { font-family: monospace; font-size: 13px; color: #fff; font-weight: 700; }
.red-bold { color: var(--red); font-weight: 900; }

/* Extrahiert aus verteidigung_deffcalls_zwischendeff3.php */
.snipe-time-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.snipe-row { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.03); padding: 4px 8px; border-radius: 4px; border-left: 2px solid var(--accent); }
.snipe-lbl { font-size: 10px; text-transform: uppercase; color: var(--tt-muted); font-weight: 700; width: 50px; }
.snipe-val { font-family: monospace; font-size: 13px; color: #fff; font-weight: 700; }
.red-bold { color: var(--red); font-weight: 900; }

/* Extrahiert aus verteidigung_deffcalls_zwischendeff4.php */
.snipe-time-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.snipe-row { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.03); padding: 4px 8px; border-radius: 4px; border-left: 2px solid var(--accent); }
.snipe-lbl { font-size: 10px; text-transform: uppercase; color: var(--tt-muted); font-weight: 700; width: 50px; }
.snipe-val { font-family: monospace; font-size: 13px; color: #fff; font-weight: 700; }
.red-bold { color: var(--red); font-weight: 900; }


/* ===== MIGRIERT AUS verteidigung_admin_angriffe.css ===== */

/* Admin Angriffe */


/* ===== MIGRIERT AUS verteidigung_admin_deffcalls.css ===== */

/* Admin Deffcalls */


/* ===== MIGRIERT AUS verteidigung_admin_eingehender_ep.css ===== */

/* Admin Eingehender EP */


/* ===== MIGRIERT AUS verteidigung_admin_einsatzplan.css ===== */

/* Admin Einsatzplan */


/* ===== MIGRIERT AUS verteidigung_angriff.css ===== */

/* Angriff */


/* ===== MIGRIERT AUS verteidigung_angriffe_melden.css ===== */

/* verteidigung_angriffe_melden.css (V32) */

:root { --bg-dark:var(--tt-bg-2); --bg-card:var(--tt-surface-solid); --border:var(--tt-line-solid); --accent:var(--tt-gold); --blue:var(--tt-blue-3); --red:var(--tt-red); --text:var(--tt-text-soft); }
.tt-wrap { width:100%; font-family:"Inter",sans-serif; color:var(--text); }

/* Header & Buttons */
.tt-header-row { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:25px; border-bottom:1px solid var(--border); padding-bottom:15px; }
.tt-header-standalone h1 { margin:0; color:#fff; font-size:24px; text-transform:uppercase; }
.tt-subtitle { margin:5px 0 0 0; color:var(--tt-muted); font-size:12px; }
.tt-btn-create { background:#238636; color:#fff; border:1px solid rgba(255,255,255,0.1); padding:8px 16px; border-radius:6px; cursor:pointer; font-weight:700; display:flex; gap:8px; align-items:center; }
.tt-btn-create:hover { background:var(--tt-green); }

/* List */
.att-list-wrap { display:flex; flex-direction:column; gap:15px; }
.empty-state { text-align:center; padding:40px; border:1px dashed var(--tt-faint-2); border-radius:8px; color:var(--tt-faint); }

/* Accordion */
.acc-lvl1 { background:var(--bg-card); border:1px solid var(--border); border-radius:8px; overflow:hidden; transition:0.2s; }
.acc-lvl1-head { padding:15px; cursor:pointer; display:flex; justify-content:space-between; align-items:center; background:rgba(255,255,255,0.02); }
.acc-lvl1.is-open { border-color:var(--blue); }
.acc-lvl1.is-open .acc-lvl1-head { background:rgba(30,64,175,0.2); border-bottom:1px solid var(--border); }
.lvl1-title { font-weight:800; color:#fff; display:flex; gap:10px; align-items:center; }
.lvl1-count { background:var(--red); color:#fff; padding:2px 8px; border-radius:4px; font-size:11px; font-weight:700; }
.acc-lvl1-body { display:none; padding:15px; background:#05070a; }
.acc-lvl1.is-open .acc-lvl1-body { display:block; }
.vtype-badge { background:var(--tt-faint-2); color:var(--tt-text-soft); font-size:10px; padding:2px 6px; border-radius:4px; margin-left:10px; text-transform:uppercase; border:1px solid var(--tt-faint-2); }

.acc-lvl2 { background:rgba(255,255,255,0.03); border:1px solid var(--border); border-radius:6px; margin-bottom:10px; overflow:hidden; }
.acc-lvl2-head { padding:10px 15px; cursor:pointer; display:flex; justify-content:space-between; align-items:center; }
.acc-lvl2-head:hover { background:rgba(255,255,255,0.05); }
.acc-lvl2.is-open .acc-lvl2-head { background:rgba(255,255,255,0.06); border-bottom:1px solid var(--border); }
.lvl2-source { font-weight:700; color:var(--tt-text); display:flex; gap:10px; align-items:center; }
.lvl2-coords-link { color:var(--accent); font-weight:400; font-size:12px; text-decoration:none; padding:2px 6px; background:rgba(242, 193, 78, 0.1); border-radius:4px; }
.lvl2-waves { color:var(--accent); font-weight:700; }
.acc-lvl2-body { display:none; }
.acc-lvl2.is-open .acc-lvl2-body { display:block; }

/* Table */
.wave-table { width:100%; border-collapse:collapse; font-size:12px; }
.wave-table th { text-align:left; padding:8px 15px; color:var(--tt-muted); text-transform:uppercase; font-size:10px; background:rgba(0,0,0,0.2); }
.wave-table td { padding:8px 15px; border-bottom:1px solid rgba(255,255,255,0.05); color:var(--tt-text-soft); }
.cell-time { font-family:monospace; font-weight:700; color:#fff; }
.cell-date { color:var(--tt-muted); width: 60px; }
.cell-unit { color:var(--accent); font-weight:700; }
.ts-badge { background:#238636; color:#fff; font-size:9px; padding:2px 5px; border-radius:4px; margin-left:8px; font-weight:bold; letter-spacing:0.5px; }
.u-unknown { color:var(--tt-faint); font-style:italic; }
.u-hero { color:#a855f7; font-weight:bold; }
.btn-del { background:none; border:none; color:var(--tt-faint); cursor:pointer; }
.btn-del:hover { color:var(--red); }
.chev { transition:0.3s; font-size:12px; color:var(--tt-faint); }
.is-open .chev { transform:rotate(180deg); color:#fff; }

/* Modals */
.tt-modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.85); backdrop-filter:blur(4px); z-index:2000; align-items:center; justify-content:center; }
.tt-modal-overlay.active { display:flex; }
.tt-modal { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; width:500px; max-width:95%; display:flex; flex-direction:column; box-shadow:0 20px 50px rgba(0,0,0,0.5); }
.tt-modal.large { width:600px; }
.tt-modal-head { padding:15px 20px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.tt-modal-head h3 { margin:0; color:#fff; font-size:16px; text-transform:uppercase; }
.close-btn { background:none; border:none; color:var(--tt-muted); font-size:24px; cursor:pointer; }
.tt-modal-body { padding:20px; }

/* Custom Warning Modal */
.warn-modal { text-align:center; padding-bottom:30px; border:1px solid var(--tt-gold); }
.warn-icon { font-size:40px; color:var(--tt-gold); margin:20px 0 10px 0; }
.warn-sub { color:var(--tt-muted); font-size:13px; margin-bottom:25px; }
.warn-actions { display:flex; justify-content:center; gap:15px; }
.btn-fix { background:var(--tt-faint-2); color:#fff; border:none; padding:10px 20px; border-radius:6px; cursor:pointer; font-weight:bold; }
.btn-ignore { background:var(--tt-red); color:#fff; border:none; padding:10px 20px; border-radius:6px; cursor:pointer; font-weight:bold; }

/* Form Elements */
.enrich-grid { display:grid; grid-template-columns: 1fr 1fr; gap:15px; margin-bottom:15px; }
.eg-item label { display:block; font-size:11px; font-weight:700; color:var(--tt-muted); margin-bottom:5px; text-transform:uppercase; }
.eg-check { display:flex; align-items:center; gap:10px; margin-bottom:15px; color:var(--tt-text-soft); font-size:13px; }
.tt-input-div { width:100%; height:200px; max-height:250px; background:#fff; color:#000; border:1px solid var(--border); border-radius:6px; padding:10px; overflow-y:auto; cursor:text; font-size:12px; font-family:sans-serif; }
.dc-inp { width:100%; background:#05070a; border:1px solid var(--border); color:#fff; padding:8px; border-radius:6px; box-sizing:border-box; }
.tt-btn-send { width:100%; padding:12px; background:var(--accent); color:#000; border:none; border-radius:6px; font-weight:800; cursor:pointer; text-transform:uppercase; }

/* Toast */
.tt-toast { visibility:hidden; min-width:250px; background-color:var(--tt-line-solid); color:#fff; text-align:center; border-radius:8px; padding:16px; position:fixed; z-index:3500; left:50%; bottom:30px; transform:translateX(-50%); font-size:14px; box-shadow:0 5px 15px rgba(0,0,0,0.5); border:1px solid var(--tt-faint-2); }
.tt-toast.show { visibility:visible; animation:fadein 0.5s, fadeout 0.5s 3.5s; }
.tt-toast.success { border-left:5px solid var(--tt-green); }
.tt-toast.error { border-left:5px solid var(--tt-red); }
@keyframes fadein { from {bottom:0; opacity:0;} to {bottom:30px; opacity:1;} }
@keyframes fadeout { from {bottom:30px; opacity:1;} to {bottom:0; opacity:0;} }

/* fix6 angriffe melden header/buttons */
.tt-wrap{padding-top:0!important;}
.tt-header-row{align-items:flex-start!important;margin-bottom:18px!important;}
.tt-header-standalone h1{font-size:var(--tt-font-h1)!important;line-height:1.05!important;}
.tt-btn-create{height:42px!important;padding:0 18px!important;border-radius:12px!important;font-size:13px!important;font-weight:800!important;}
.empty-state{min-height:320px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:14px!important;}


/* ===== MIGRIERT AUS verteidigung_anmeldung_einsatzplan.css ===== */

/* Anmeldung Einsatzplan */


/* ===== MIGRIERT AUS verteidigung_deffcalls.css ===== */

/* verteidigung_deffcalls.css (V60 - FULL ORIGINAL + ADDONS) */

:root {
    --bg-dark: #05070a; 
    --bg-card: #0b1016; 
    --bg-header: var(--tt-surface-solid); 
    --bg-input: var(--tt-bg-0);
    --border: var(--tt-line-solid); 
    --accent: var(--tt-gold); 
    --blue: var(--tt-blue-3); 
    --royal: #1e40af;
    --green: var(--tt-green); 
    --red: var(--tt-red);
    --text-main: var(--tt-text-soft); 
    --text-muted: var(--tt-muted);
}

.tt-dc-wrap { 
    width: 100%; 
    box-sizing: border-box; 
    font-family: "Inter", sans-serif; 
    color: var(--text-main); 
    position: relative; 
    scroll-behavior: smooth; 
}

/* --- TOP SECTION (Mini Cards + Buttons) --- */
.tt-top-section { 
    display: flex; 
    gap: 15px; 
    align-items: flex-start; 
    justify-content: space-between; 
    margin-bottom: 20px; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 20px;
    flex-wrap: wrap; 
}

/* MINI CARDS GRID */
.tt-mini-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    flex: 1; 
    min-width: 300px;
}

.tt-mini-card { 
    flex: 1 1 160px; 
    max-width: 250px;
    background: var(--tt-surface-solid); 
    border: 1px solid var(--border); 
    border-radius: 6px; 
    padding: 8px; 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
    text-decoration: none; 
    color: inherit; 
    transition: 0.2s;
    border-left: 3px solid var(--green); 
    cursor: pointer;
}
.tt-mini-card:hover { 
    transform:none; 
    border-color: var(--accent); 
    background: var(--tt-surface-hover-solid); 
}

.tt-mini-name { 
    font-weight: 800; 
    font-size: 11px; 
    color: #fff; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.tt-mini-bar-wrap { display: flex; flex-direction: column; gap: 2px; }
.tt-mini-track { height: 3px; background: #000; border-radius: 2px; width: 100%; overflow: hidden; }
/* FARBEN FIX */
.tt-mini-fill { height: 100%; background: var(--red); }
.tt-mini-fill.scout { background: var(--accent); }

.tt-mini-vals { display: flex; justify-content: space-between; font-size: 9px; color: var(--tt-muted); }

/* ACTION BUTTONS */
.tt-actions-right { 
    display: flex; 
    gap: 8px; 
    flex-shrink: 0; 
    align-items: center; 
    flex-wrap: wrap; 
    justify-content: flex-end;
}

.tt-btn-create { 
    background: linear-gradient(180deg, #1f6feb, #1158c7); 
    border: 1px solid rgba(255,255,255,0.1); 
    color: #fff; 
    padding: 6px 14px; 
    border-radius: 4px; 
    font-weight: 800; 
    font-size: 11px; 
    text-transform: uppercase; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    text-decoration: none; 
    white-space: nowrap;
}
.tt-btn-create:hover { background: #1f6feb; transform:none; }

.tt-btn-archive { 
    background: transparent; 
    border: 1px solid var(--tt-line-solid); 
    color: var(--tt-muted); 
    padding: 6px 12px; 
    border-radius: 4px; 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    transition: 0.2s; 
    white-space: nowrap; 
}
.tt-btn-archive:hover { border-color: #fff; color: #fff; }

/* --- MAIN DEFFCALL GRID --- */
.tt-dc-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); 
    gap: 20px; 
}

/* CARD & ANIMATIONS */
@keyframes flashHighlight { 
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0); border-color: var(--border); }
    30% { box-shadow: 0 0 30px 5px rgba(255,255,255,0.3); border-color: #fff; background: #1c2128; }
    100% { box-shadow: 0 4px 10px rgba(0,0,0,0.3); border-color: var(--border); background: var(--bg-card); }
}

.tt-dc-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    transition: border-color 0.2s;
    min-height: 380px; 
    position: relative;
}
.tt-dc-card.highlight-anim { animation: flashHighlight 1.5s ease-out; }
.tt-dc-card:hover { border-color: var(--accent); }
.tt-dc-card.is-full { border: 2px solid var(--green); }
.tt-dc-card.is-emergency { border: 2px solid var(--red); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(218, 54, 51, 0.4); } 70% { box-shadow: 0 0 0 8px rgba(218, 54, 51, 0); } 100% { box-shadow: 0 0 0 0 rgba(218, 54, 51, 0); } }

/* FULL STATE BLUR */
.dc-body { 
    padding: 15px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    position: relative; 
    transition: 0.3s; 
}
.tt-dc-card.is-really-full .dc-body { filter: blur(5px) grayscale(0.5); opacity: 0.4; pointer-events: none; }
.tt-dc-card.is-really-full.force-visible .dc-body { filter: none; opacity: 1; pointer-events: auto; }

/* OVERLAY MSG */
.tt-full-msg { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    z-index: 10; display: none; background: rgba(0,0,0,0.9); padding: 20px 30px; border-radius: 8px; 
    border: 2px solid var(--green); text-align: center; box-shadow: 0 0 20px #000;
}
.tt-dc-card.is-really-full .tt-full-msg { display: block; }
.tt-dc-card.is-really-full.force-visible .tt-full-msg { display: none; }

.tt-msg-text { font-size: 24px; font-weight: 900; color: #fff; text-shadow: 0 0 10px #000; margin-bottom: 10px; white-space: nowrap; }
.tt-btn-unblur { 
    background: transparent; border: 1px solid #fff; color: #fff; font-size: 11px; font-weight: 700; 
    text-transform: uppercase; padding: 6px 12px; border-radius: 4px; cursor: pointer; transition: 0.2s; 
}
.tt-btn-unblur:hover { background: #fff; color: #000; }

/* HEAD */
.dc-head { padding: 10px 15px; background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; }
.dc-title-block { display: flex; flex-direction: column; gap: 2px; }

/* BADGE FIX: GAP 0 */
.dc-h-player { font-size: 16px; font-weight: 900; color: #fff; text-transform: uppercase; display: flex; align-items: center; gap: 0px !important; }

.dc-village { font-size: 12px; color: var(--blue); text-decoration: none; display: flex; align-items: center; gap: 4px; font-weight: 600; font-family: monospace; }
.dc-village:hover { text-decoration: underline; color: #fff; }
.dc-badges { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.dc-badge { font-size: 9px; padding: 2px 5px; border-radius: 3px; font-weight: 800; border: 1px solid; text-transform: uppercase; }

/* Village Types */
.bg-type { color: #fff; border-color: var(--red); background: rgba(218, 54, 51, 0.4); text-shadow: 0 1px 2px #000; box-shadow: 0 0 5px rgba(218, 54, 51, 0.3); } 
.bg-open { color: var(--green); border-color: var(--green); }
.bg-full { background: var(--green); color: #000; border-color: var(--green); }
.bg-emer { background: var(--red); color: #fff; border-color: var(--red); }

/* ATTACKER */
.dc-att-box { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; background: rgba(218, 81, 73, 0.1); padding: 5px; border-radius: 4px; border: 1px solid rgba(218, 81, 73, 0.2); }
.dc-att-link { color: #ffadad; text-decoration: none; font-size: 11px; display: flex; align-items: center; gap: 4px; font-weight: 600; padding: 2px 6px; background: rgba(0,0,0,0.3); border-radius: 3px; }
.dc-att-link:hover { color: #fff; background: rgba(255,92,92, 0.4); }

/* DATA GRID */
.dc-data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 15px; font-size: 11px; }
.dc-data-row { display: flex; justify-content: space-between; padding-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dc-lbl { color: var(--text-muted); font-weight: 700; text-transform: uppercase; font-size: 9px; padding-top: 1px; }
.dc-val { color: #fff; font-weight: 700; text-align: right; }
.dc-val.green { color: var(--green); }
.dc-val.red { color: var(--red); }

/* BARS - FARBEN FIX */
.dc-bars { display: flex; flex-direction: column; gap: 5px; border-top: 1px solid var(--tt-line-solid); padding-top: 8px; }
.dc-prog-wrap { position: relative; }
.dc-prog-head { display: flex; justify-content: space-between; font-size: 9px; color: var(--tt-muted); margin-bottom: 2px; font-weight: 700; }
.dc-prog-track { height: 6px; background: var(--tt-bg-0); border-radius: 3px; overflow: hidden; border: 1px solid var(--tt-line-solid); }
.dc-prog-fill { height: 100%; background: var(--red); }
.dc-prog-fill.full { background: var(--green); }
.dc-prog-fill.scout { background: var(--accent); }

/* LIST TABLE (In Card) */
.dc-list-wrap { border: 1px solid var(--border); border-radius: 4px; background: var(--tt-bg-0); margin-top: 5px; overflow: hidden; }
.dc-list-head { 
    display: grid; grid-template-columns: 2fr 2fr 1fr 1fr 40px; padding: 4px 8px; 
    background: var(--tt-surface-solid); font-size: 9px; font-weight: 800; color: var(--tt-muted); 
    text-transform: uppercase; border-bottom: 1px solid var(--border); 
}

/* --- SCROLL AREA FIX --- */
.dc-list-body { 
    max-height: 100px; /* Shows 3 full rows, cuts the 4th */
    overflow-y: auto; 
    scrollbar-width: none; /* Firefox Hidden Scroll */
    -ms-overflow-style: none; /* IE Hidden Scroll */
}
.dc-list-body::-webkit-scrollbar { 
    width: 0; 
    background: transparent; /* Webkit Hidden Scroll */
}

.dc-list-row { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr 40px; padding: 4px 8px; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 11px; align-items: center; }
.dc-list-row:hover { background-color: rgba(88, 166, 255, 0.1); }

/* BADGE FIX: GAP 0 */
.cl-pname { color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 0px !important; }

.cl-units { color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: monospace; font-size: 10px; }
.cl-count { color: var(--blue); text-align: right; font-weight: 700; }
.cl-crop { color: var(--red); text-align: right; }
.cl-action { text-align: right; display: flex; gap: 2px; justify-content: flex-end; }
.btn-act { background: rgba(255,255,255,0.05); border: 1px solid var(--tt-line-solid); cursor: pointer; padding: 2px; opacity: 0.8; font-size: 9px; color: var(--tt-muted); border-radius: 3px; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.btn-act:hover { opacity: 1; color: #fff; border-color: #fff; }

/* FOOTER - SMALLER */
.dc-foot { padding: 8px 12px; background: rgba(0,0,0,0.3); border-top: 1px solid var(--border); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dc-btn { flex: 1; height: 26px; border-radius: 4px; font-size: 10px; font-weight: 800; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid transparent; text-decoration: none; padding: 0 8px; }
.dc-btn.primary { background: linear-gradient(135deg, var(--tt-gold), #d4a737); color: #05070a; border: none; }
.dc-btn.primary:hover { filter: brightness(1.1); transform:none; }
.dc-btn.secondary { background: transparent; border: 1px solid var(--tt-line-solid); color: var(--tt-muted); }
.dc-btn.secondary:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.05); }
.dc-btn.text { flex: 0 0 auto; background: transparent; border: 1px solid var(--tt-line-solid); color: var(--tt-muted); padding: 0 10px; }
.dc-btn.text:hover { color: #fff; border-color: #fff; }

/* MODALS */
.tt-modal-overlay { position: fixed !important; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.9); z-index: 200000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.tt-modal-overlay.active { display: flex !important; }
.tt-modal.medium { width: 600px; max-width: 95%; background: var(--tt-bg-2); border: 1px solid var(--tt-line-solid); border-radius: 12px; box-shadow: 0 0 80px rgba(0,0,0,1); display: flex; flex-direction: column; max-height: 90vh; border-top: 4px solid var(--blue); }
.tt-modal.wide { width: 98%; max-width: 1800px; background: var(--tt-bg-2); border: 1px solid var(--tt-line-solid); border-radius: 12px; box-shadow: 0 0 80px rgba(0,0,0,1); display: flex; flex-direction: column; max-height: 95vh; border-top: 4px solid var(--blue); }
.tt-modal.large { width: 900px; max-width: 95%; background: var(--tt-bg-2); border: 1px solid var(--tt-line-solid); border-radius: 12px; box-shadow: 0 0 80px rgba(0,0,0,1); display: flex; flex-direction: column; max-height: 90vh; border-top: 4px solid var(--accent); }


/* Accent stripe for Create/Edit modals (do NOT apply to Send modal) */
.tt-modal.modal-accent{border-top:4px solid var(--accent) !important;}
.tt-modal-head { padding: 15px 25px; border-bottom: 1px solid var(--tt-line-solid); background: var(--tt-surface-solid); display: flex; justify-content: space-between; align-items: center; }
.tt-modal-title { margin: 0; color: #fff; font-size: 16px; font-weight: 800; text-transform: uppercase; }
.tt-modal-close { background: none; border: none; color: var(--tt-muted); font-size: 24px; cursor: pointer; }
.tt-modal-body { padding: 20px; overflow-y: auto; overflow-x: auto; position: relative; }

/* STATUS DOTS */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.st-live { background: var(--tt-green); box-shadow: 0 0 5px var(--tt-green); }
.st-hidden { background: var(--tt-gold); box-shadow: 0 0 5px var(--tt-gold); }
.st-closed { background: var(--tt-red); box-shadow: 0 0 5px var(--tt-red); }

/* SUM HEADER */
.mt-top-counter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mt-sum-wrap { display: flex; gap: 8px; font-size: 10px; font-weight: 700; color: var(--tt-text-soft); flex-wrap: wrap; }
.mt-sum-unit { background: var(--tt-surface-hover-solid); padding: 4px 8px; border-radius: 4px; border: 1px solid var(--tt-line-solid); }
.mt-sum-crop { background: rgba(242, 193, 78, 0.1); color: var(--accent); padding: 4px 8px; border-radius: 4px; border: 1px solid var(--accent); }
.mt-btn-save-mini { background: var(--accent); color: #000; border: none; padding: 4px 12px; border-radius: 4px; font-weight: 800; font-size: 10px; text-transform: uppercase; cursor: pointer; }

/* SEND TABLE */
.mt-table-wrap { width: 100%; border: 1px solid var(--tt-line-solid); border-radius: 8px; overflow: hidden; background: var(--tt-bg-0); }
.mt-table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; table-layout: fixed; }
.mt-table th { background: var(--tt-surface-solid); padding: 8px; text-align: center; color: var(--tt-muted); border-bottom: 1px solid var(--tt-line-solid); font-weight: 700; vertical-align: middle; }
.mt-table th.th-left { text-align: left; width: 150px; }
.mt-table th.col-ts { width: 40px; }
.mt-table th.col-dist { width: 50px; }
.mt-table td { padding: 4px; border: 1px solid transparent; border-bottom-color: var(--tt-surface-hover-solid); color: var(--tt-text-soft); vertical-align: middle; text-align: center; }
.mt-table td.td-left { text-align: left; overflow: hidden; text-overflow: ellipsis; }

/* ROYAL BLUE HOVER */
.mt-table tbody tr:hover td { background-color: rgba(30, 64, 175, 0.3) !important; color: #fff !important; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.mt-col-hover { background-color: rgba(30, 64, 175, 0.2) !important; border-left: 1px solid var(--accent); border-right: 1px solid var(--accent) !important; }

/* CELL LAYOUT (Side-by-Side) */
.mt-cell-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.mt-inp { width: 60px; height: 26px; background: rgba(255,255,255,0.05); border: 1px solid var(--tt-line-solid); color: #fff; text-align: center; font-family: monospace; font-size: 13px; padding: 0; border-radius: 4px; -moz-appearance: textfield; font-weight: 700; }
.mt-inp:focus { border-color: var(--accent); background: rgba(242, 193, 78, 0.1); outline: none; color: var(--accent); }
.mt-inp.has-val { color: var(--accent); border-color: var(--accent); background: rgba(242, 193, 78, 0.05); }
.mt-info-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 45px; }
.mt-avail { color: #fff; font-weight: 800; font-size: 11px; opacity: 0.9; }
.mt-time { font-size: 10px; font-family: monospace; white-space: nowrap; font-weight: 600; }
.mt-time.ok { color: var(--green); }
.mt-time.late { color: var(--red); }
.btn-send-link { display: inline-flex; align-items: center; justify-content: center; background: var(--tt-surface-hover-solid); border: 1px solid var(--tt-line-solid); color: var(--accent); width: 20px; height: 20px; border-radius: 3px; cursor: pointer; text-decoration: none; font-size: 10px; margin-left: 5px; flex-shrink: 0; }
.btn-send-link:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* FORMS */
.dc-form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.dc-form-row { margin-bottom: 15px; position: relative; }
.dc-lbl { display: block; font-size: 10px; font-weight: 700; color: var(--tt-muted); margin-bottom: 5px; text-transform: uppercase; }
.dc-inp { width: 100%; background: var(--tt-bg-0); border: 1px solid var(--tt-line-solid); color: #fff; padding: 10px; border-radius: 4px; box-sizing: border-box; font-size: 13px; font-weight: 600; }
.dc-inp:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2); }
.dc-btn-save { width: 100%; padding: 12px; background: linear-gradient(135deg, var(--blue), #1f6feb); color: #fff; border: none; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; cursor: pointer; margin-top: 10px; }
.dc-btn-del { width: 100%; padding: 12px; background: transparent; color: var(--red); border: 1px solid var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; cursor: pointer; margin-top: 10px; }
.dc-btn-del:hover { background: rgba(218, 54, 51, 0.1); }
.dc-search-wrap { position: relative; z-index: 50; }
.dc-res-list { position: fixed; width: 300px; max-height: 200px; overflow-y: auto; background: var(--tt-surface-solid); border: 1px solid var(--blue); z-index: 200000; display: none; box-shadow: 0 10px 50px rgba(0,0,0,0.9); border-radius: 6px; }
.dc-res-item { padding: 10px 15px; cursor: pointer; font-size: 12px; border-bottom: 1px solid var(--tt-line-solid); color: var(--tt-text-soft); }
.dc-res-item:hover { background: var(--blue); color: #fff; }
.att-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.att-tag { background: rgba(218, 54, 51, 0.15); color: #ffadad; padding: 4px 10px; border-radius: 20px; font-size: 11px; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(218, 54, 51, 0.3); font-weight: 600; }
.att-rem { cursor: pointer; font-weight: 900; }

/* LOADING OVERLAY */
.tt-loading-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(13, 17, 23, 0.9); z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.tt-spinner { width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.1); border-top: 4px solid var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 10px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- NEUE ADDONS (UNVERÄNDERTER BASIS-CODE OBEN) --- */
.snipe-time-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.snipe-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(255,255,255,0.03); padding: 6px 10px; border-radius: 4px; border-left: 2px solid var(--accent); }
.snipe-lbl { font-size: 10px; text-transform: uppercase; color: var(--tt-muted); font-weight: 700; width: 50px; }
.snipe-val { font-family: monospace; font-size: 13px; color: #fff; font-weight: 700; }
.red-bold { color: var(--red); font-weight: 900; }
.tt-alert-box { background:rgba(255,92,92, 0.15); border:1px solid var(--tt-red); color:var(--tt-red); padding:10px; margin-bottom:15px; border-radius:6px; font-size:12px; display:flex; align-items:center; gap:10px; }

/* --- MOBILE OPTIMIZATION (< 900px) --- */
@media screen and (max-width: 900px) {
    .tt-dc-grid { grid-template-columns: 1fr; }
    .tt-top-section { flex-direction: column; gap: 10px; }
    .tt-mini-grid { width: 100%; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .tt-actions-right { width: 100%; justify-content: space-between; flex-wrap: wrap; }
    .tt-btn-create, .tt-btn-archive { flex: 1; justify-content: center; }
    
    .tt-modal.wide, .tt-modal.medium, .tt-modal.large { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; border: none; top: 0; left: 0; }
    .tt-modal-body { padding: 10px; height: calc(100vh - 60px); overflow-y: scroll; }
    
    /* MOBILE LIST HEIGHT */
    .dc-list-body { max-height: 150px; }
    
    /* Mobile Send Table (Card View) */
    .mt-table-wrap { background: transparent; border: none; overflow: visible; }
    .mt-table, .mt-table tbody, .mt-table tr, .mt-table td { display: block; width: 100%; }
    .mt-table thead { display: none; }
    .mt-table tr { background: var(--tt-surface-solid); border: 1px solid var(--tt-line-solid); margin-bottom: 15px; border-radius: 8px; padding: 0; position: relative; }
    
    /* Village Header (Clickable) */
    .mt-table td.td-left { background: var(--tt-bg-2); padding: 12px; font-weight: 800; border-bottom: 1px solid var(--tt-line-solid); display: flex; justify-content: space-between; align-items: center; color: #fff; cursor: pointer; }
    .mt-table td.td-left::after { content: "▼"; font-size: 10px; color: var(--tt-muted); transition: transform 0.2s; }
    .mt-table tr.is-expanded td.td-left::after { transform: rotate(180deg); color: var(--accent); }
    
    /* Hidden Content */
    .mt-table td:not(.td-left) { display: none; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    
    /* Expanded State */
    .mt-table tr.is-expanded td { display: flex; flex-direction: row; justify-content: space-between; align-items: center; }
    .mt-table td:not(.td-left)::before { content: attr(data-label); font-size: 11px; font-weight: 700; color: var(--tt-muted); width: 80px; }
    
    .mt-inp { width: 80px; height: 34px; font-size: 14px; }
    .mt-cell-row { gap: 15px; width: 100%; justify-content: flex-end; }
    .mt-info-col { align-items: flex-end; }
}
/* Zwischendeff – leicht breiter als medium */
.tt-modal.zwischendeff-modal {
    width: 750px;
    max-width: 96%;
}

/* fix6 deffcalls buttons */
.tt-btn,.tt-btn-primary,.tt-btn-secondary,.tt-action-btn,.tt-btn-head,.tt-btn-create{height:40px!important;padding:0 16px!important;border-radius:12px!important;font-size:12px!important;font-weight:800!important;transform:none!important;}


/* ===== MIGRIERT AUS verteidigung_deffcalls1.css ===== */

/* verteidigung_deffcalls.css (V60 - FULL ORIGINAL + ADDONS) */

:root {
    --bg-dark: #05070a; 
    --bg-card: #0b1016; 
    --bg-header: var(--tt-surface-solid); 
    --bg-input: var(--tt-bg-0);
    --border: var(--tt-line-solid); 
    --accent: var(--tt-gold); 
    --blue: var(--tt-blue-3); 
    --royal: #1e40af;
    --green: var(--tt-green); 
    --red: var(--tt-red);
    --text-main: var(--tt-text-soft); 
    --text-muted: var(--tt-muted);
}

.tt-dc-wrap { 
    width: 100%; 
    box-sizing: border-box; 
    font-family: "Inter", sans-serif; 
    color: var(--text-main); 
    position: relative; 
    scroll-behavior: smooth; 
}

/* --- TOP SECTION (Mini Cards + Buttons) --- */
.tt-top-section { 
    display: flex; 
    gap: 15px; 
    align-items: flex-start; 
    justify-content: space-between; 
    margin-bottom: 20px; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 20px;
    flex-wrap: wrap; 
}

/* MINI CARDS GRID */
.tt-mini-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    flex: 1; 
    min-width: 300px;
}

.tt-mini-card { 
    flex: 1 1 160px; 
    max-width: 250px;
    background: var(--tt-surface-solid); 
    border: 1px solid var(--border); 
    border-radius: 6px; 
    padding: 8px; 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
    text-decoration: none; 
    color: inherit; 
    transition: 0.2s;
    border-left: 3px solid var(--green); 
    cursor: pointer;
}
.tt-mini-card:hover { 
    transform:none; 
    border-color: var(--accent); 
    background: var(--tt-surface-hover-solid); 
}

.tt-mini-name { 
    font-weight: 800; 
    font-size: 11px; 
    color: #fff; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.tt-mini-bar-wrap { display: flex; flex-direction: column; gap: 2px; }
.tt-mini-track { height: 3px; background: #000; border-radius: 2px; width: 100%; overflow: hidden; }
/* FARBEN FIX */
.tt-mini-fill { height: 100%; background: var(--red); }
.tt-mini-fill.scout { background: var(--accent); }

.tt-mini-vals { display: flex; justify-content: space-between; font-size: 9px; color: var(--tt-muted); }

/* ACTION BUTTONS */
.tt-actions-right { 
    display: flex; 
    gap: 8px; 
    flex-shrink: 0; 
    align-items: center; 
    flex-wrap: wrap; 
    justify-content: flex-end;
}

.tt-btn-create { 
    background: linear-gradient(180deg, #1f6feb, #1158c7); 
    border: 1px solid rgba(255,255,255,0.1); 
    color: #fff; 
    padding: 6px 14px; 
    border-radius: 4px; 
    font-weight: 800; 
    font-size: 11px; 
    text-transform: uppercase; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    text-decoration: none; 
    white-space: nowrap;
}
.tt-btn-create:hover { background: #1f6feb; transform:none; }

.tt-btn-archive { 
    background: transparent; 
    border: 1px solid var(--tt-line-solid); 
    color: var(--tt-muted); 
    padding: 6px 12px; 
    border-radius: 4px; 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    transition: 0.2s; 
    white-space: nowrap; 
}
.tt-btn-archive:hover { border-color: #fff; color: #fff; }

/* --- MAIN DEFFCALL GRID --- */
.tt-dc-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); 
    gap: 20px; 
}

/* CARD & ANIMATIONS */
@keyframes flashHighlight { 
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0); border-color: var(--border); }
    30% { box-shadow: 0 0 30px 5px rgba(255,255,255,0.3); border-color: #fff; background: #1c2128; }
    100% { box-shadow: 0 4px 10px rgba(0,0,0,0.3); border-color: var(--border); background: var(--bg-card); }
}

.tt-dc-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    transition: border-color 0.2s;
    min-height: 380px; 
    position: relative;
}
.tt-dc-card.highlight-anim { animation: flashHighlight 1.5s ease-out; }
.tt-dc-card:hover { border-color: var(--accent); }
.tt-dc-card.is-full { border: 2px solid var(--green); }
.tt-dc-card.is-emergency { border: 2px solid var(--red); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(218, 54, 51, 0.4); } 70% { box-shadow: 0 0 0 8px rgba(218, 54, 51, 0); } 100% { box-shadow: 0 0 0 0 rgba(218, 54, 51, 0); } }

/* FULL STATE BLUR */
.dc-body { 
    padding: 15px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    position: relative; 
    transition: 0.3s; 
}
.tt-dc-card.is-really-full .dc-body { filter: blur(5px) grayscale(0.5); opacity: 0.4; pointer-events: none; }
.tt-dc-card.is-really-full.force-visible .dc-body { filter: none; opacity: 1; pointer-events: auto; }

/* OVERLAY MSG */
.tt-full-msg { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    z-index: 10; display: none; background: rgba(0,0,0,0.9); padding: 20px 30px; border-radius: 8px; 
    border: 2px solid var(--green); text-align: center; box-shadow: 0 0 20px #000;
}
.tt-dc-card.is-really-full .tt-full-msg { display: block; }
.tt-dc-card.is-really-full.force-visible .tt-full-msg { display: none; }

.tt-msg-text { font-size: 24px; font-weight: 900; color: #fff; text-shadow: 0 0 10px #000; margin-bottom: 10px; white-space: nowrap; }
.tt-btn-unblur { 
    background: transparent; border: 1px solid #fff; color: #fff; font-size: 11px; font-weight: 700; 
    text-transform: uppercase; padding: 6px 12px; border-radius: 4px; cursor: pointer; transition: 0.2s; 
}
.tt-btn-unblur:hover { background: #fff; color: #000; }

/* HEAD */
.dc-head { padding: 10px 15px; background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; }
.dc-title-block { display: flex; flex-direction: column; gap: 2px; }

/* BADGE FIX: GAP 0 */
.dc-h-player { font-size: 16px; font-weight: 900; color: #fff; text-transform: uppercase; display: flex; align-items: center; gap: 0px !important; }

.dc-village { font-size: 12px; color: var(--blue); text-decoration: none; display: flex; align-items: center; gap: 4px; font-weight: 600; font-family: monospace; }
.dc-village:hover { text-decoration: underline; color: #fff; }
.dc-badges { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.dc-badge { font-size: 9px; padding: 2px 5px; border-radius: 3px; font-weight: 800; border: 1px solid; text-transform: uppercase; }

/* Village Types */
.bg-type { color: #fff; border-color: var(--red); background: rgba(218, 54, 51, 0.4); text-shadow: 0 1px 2px #000; box-shadow: 0 0 5px rgba(218, 54, 51, 0.3); } 
.bg-open { color: var(--green); border-color: var(--green); }
.bg-full { background: var(--green); color: #000; border-color: var(--green); }
.bg-emer { background: var(--red); color: #fff; border-color: var(--red); }

/* ATTACKER */
.dc-att-box { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; background: rgba(218, 81, 73, 0.1); padding: 5px; border-radius: 4px; border: 1px solid rgba(218, 81, 73, 0.2); }
.dc-att-link { color: #ffadad; text-decoration: none; font-size: 11px; display: flex; align-items: center; gap: 4px; font-weight: 600; padding: 2px 6px; background: rgba(0,0,0,0.3); border-radius: 3px; }
.dc-att-link:hover { color: #fff; background: rgba(255,92,92, 0.4); }

/* DATA GRID */
.dc-data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 15px; font-size: 11px; }
.dc-data-row { display: flex; justify-content: space-between; padding-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dc-lbl { color: var(--text-muted); font-weight: 700; text-transform: uppercase; font-size: 9px; padding-top: 1px; }
.dc-val { color: #fff; font-weight: 700; text-align: right; }
.dc-val.green { color: var(--green); }
.dc-val.red { color: var(--red); }

/* BARS - FARBEN FIX */
.dc-bars { display: flex; flex-direction: column; gap: 5px; border-top: 1px solid var(--tt-line-solid); padding-top: 8px; }
.dc-prog-wrap { position: relative; }
.dc-prog-head { display: flex; justify-content: space-between; font-size: 9px; color: var(--tt-muted); margin-bottom: 2px; font-weight: 700; }
.dc-prog-track { height: 6px; background: var(--tt-bg-0); border-radius: 3px; overflow: hidden; border: 1px solid var(--tt-line-solid); }
.dc-prog-fill { height: 100%; background: var(--red); }
.dc-prog-fill.full { background: var(--green); }
.dc-prog-fill.scout { background: var(--accent); }

/* LIST TABLE (In Card) */
.dc-list-wrap { border: 1px solid var(--border); border-radius: 4px; background: var(--tt-bg-0); margin-top: 5px; overflow: hidden; }
.dc-list-head { 
    display: grid; grid-template-columns: 2fr 2fr 1fr 1fr 40px; padding: 4px 8px; 
    background: var(--tt-surface-solid); font-size: 9px; font-weight: 800; color: var(--tt-muted); 
    text-transform: uppercase; border-bottom: 1px solid var(--border); 
}

/* --- SCROLL AREA FIX --- */
.dc-list-body { 
    max-height: 100px; /* Shows 3 full rows, cuts the 4th */
    overflow-y: auto; 
    scrollbar-width: none; /* Firefox Hidden Scroll */
    -ms-overflow-style: none; /* IE Hidden Scroll */
}
.dc-list-body::-webkit-scrollbar { 
    width: 0; 
    background: transparent; /* Webkit Hidden Scroll */
}

.dc-list-row { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr 40px; padding: 4px 8px; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 11px; align-items: center; }
.dc-list-row:hover { background-color: rgba(88, 166, 255, 0.1); }

/* BADGE FIX: GAP 0 */
.cl-pname { color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 0px !important; }

.cl-units { color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: monospace; font-size: 10px; }
.cl-count { color: var(--blue); text-align: right; font-weight: 700; }
.cl-crop { color: var(--red); text-align: right; }
.cl-action { text-align: right; display: flex; gap: 2px; justify-content: flex-end; }
.btn-act { background: rgba(255,255,255,0.05); border: 1px solid var(--tt-line-solid); cursor: pointer; padding: 2px; opacity: 0.8; font-size: 9px; color: var(--tt-muted); border-radius: 3px; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.btn-act:hover { opacity: 1; color: #fff; border-color: #fff; }

/* FOOTER - SMALLER */
.dc-foot { padding: 8px 12px; background: rgba(0,0,0,0.3); border-top: 1px solid var(--border); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dc-btn { flex: 1; height: 26px; border-radius: 4px; font-size: 10px; font-weight: 800; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid transparent; text-decoration: none; padding: 0 8px; }
.dc-btn.primary { background: linear-gradient(135deg, var(--tt-gold), #d4a737); color: #05070a; border: none; }
.dc-btn.primary:hover { filter: brightness(1.1); transform:none; }
.dc-btn.secondary { background: transparent; border: 1px solid var(--tt-line-solid); color: var(--tt-muted); }
.dc-btn.secondary:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.05); }
.dc-btn.text { flex: 0 0 auto; background: transparent; border: 1px solid var(--tt-line-solid); color: var(--tt-muted); padding: 0 10px; }
.dc-btn.text:hover { color: #fff; border-color: #fff; }

/* MODALS */
.tt-modal-overlay { position: fixed !important; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.9); z-index: 200000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.tt-modal-overlay.active { display: flex !important; }
.tt-modal.medium { width: 600px; max-width: 95%; background: var(--tt-bg-2); border: 1px solid var(--tt-line-solid); border-radius: 12px; box-shadow: 0 0 80px rgba(0,0,0,1); display: flex; flex-direction: column; max-height: 90vh; border-top: 4px solid var(--blue); }
.tt-modal.wide { width: 98%; max-width: 1800px; background: var(--tt-bg-2); border: 1px solid var(--tt-line-solid); border-radius: 12px; box-shadow: 0 0 80px rgba(0,0,0,1); display: flex; flex-direction: column; max-height: 95vh; border-top: 4px solid var(--blue); }
.tt-modal.large { width: 900px; max-width: 95%; background: var(--tt-bg-2); border: 1px solid var(--tt-line-solid); border-radius: 12px; box-shadow: 0 0 80px rgba(0,0,0,1); display: flex; flex-direction: column; max-height: 90vh; border-top: 4px solid var(--accent); }

.tt-modal-head { padding: 15px 25px; border-bottom: 1px solid var(--tt-line-solid); background: var(--tt-surface-solid); display: flex; justify-content: space-between; align-items: center; }
.tt-modal-title { margin: 0; color: #fff; font-size: 16px; font-weight: 800; text-transform: uppercase; }
.tt-modal-close { background: none; border: none; color: var(--tt-muted); font-size: 24px; cursor: pointer; }
.tt-modal-body { padding: 20px; overflow-y: auto; overflow-x: auto; position: relative; }

/* STATUS DOTS */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.st-live { background: var(--tt-green); box-shadow: 0 0 5px var(--tt-green); }
.st-hidden { background: var(--tt-gold); box-shadow: 0 0 5px var(--tt-gold); }
.st-closed { background: var(--tt-red); box-shadow: 0 0 5px var(--tt-red); }

/* SUM HEADER */
.mt-top-counter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mt-sum-wrap { display: flex; gap: 8px; font-size: 10px; font-weight: 700; color: var(--tt-text-soft); flex-wrap: wrap; }
.mt-sum-unit { background: var(--tt-surface-hover-solid); padding: 4px 8px; border-radius: 4px; border: 1px solid var(--tt-line-solid); }
.mt-sum-crop { background: rgba(242, 193, 78, 0.1); color: var(--accent); padding: 4px 8px; border-radius: 4px; border: 1px solid var(--accent); }
.mt-btn-save-mini { background: var(--accent); color: #000; border: none; padding: 4px 12px; border-radius: 4px; font-weight: 800; font-size: 10px; text-transform: uppercase; cursor: pointer; }

/* SEND TABLE */
.mt-table-wrap { width: 100%; border: 1px solid var(--tt-line-solid); border-radius: 8px; overflow: hidden; background: var(--tt-bg-0); }
.mt-table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; table-layout: fixed; }
.mt-table th { background: var(--tt-surface-solid); padding: 8px; text-align: center; color: var(--tt-muted); border-bottom: 1px solid var(--tt-line-solid); font-weight: 700; vertical-align: middle; }
.mt-table th.th-left { text-align: left; width: 150px; }
.mt-table th.col-ts { width: 40px; }
.mt-table th.col-dist { width: 50px; }
.mt-table td { padding: 4px; border: 1px solid transparent; border-bottom-color: var(--tt-surface-hover-solid); color: var(--tt-text-soft); vertical-align: middle; text-align: center; }
.mt-table td.td-left { text-align: left; overflow: hidden; text-overflow: ellipsis; }

/* ROYAL BLUE HOVER */
.mt-table tbody tr:hover td { background-color: rgba(30, 64, 175, 0.3) !important; color: #fff !important; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.mt-col-hover { background-color: rgba(30, 64, 175, 0.2) !important; border-left: 1px solid var(--accent); border-right: 1px solid var(--accent) !important; }

/* CELL LAYOUT (Side-by-Side) */
.mt-cell-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.mt-inp { width: 60px; height: 26px; background: rgba(255,255,255,0.05); border: 1px solid var(--tt-line-solid); color: #fff; text-align: center; font-family: monospace; font-size: 13px; padding: 0; border-radius: 4px; -moz-appearance: textfield; font-weight: 700; }
.mt-inp:focus { border-color: var(--accent); background: rgba(242, 193, 78, 0.1); outline: none; color: var(--accent); }
.mt-inp.has-val { color: var(--accent); border-color: var(--accent); background: rgba(242, 193, 78, 0.05); }
.mt-info-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 45px; }
.mt-avail { color: #fff; font-weight: 800; font-size: 11px; opacity: 0.9; }
.mt-time { font-size: 10px; font-family: monospace; white-space: nowrap; font-weight: 600; }
.mt-time.ok { color: var(--green); }
.mt-time.late { color: var(--red); }
.btn-send-link { display: inline-flex; align-items: center; justify-content: center; background: var(--tt-surface-hover-solid); border: 1px solid var(--tt-line-solid); color: var(--accent); width: 20px; height: 20px; border-radius: 3px; cursor: pointer; text-decoration: none; font-size: 10px; margin-left: 5px; flex-shrink: 0; }
.btn-send-link:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* FORMS */
.dc-form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.dc-form-row { margin-bottom: 15px; position: relative; }
.dc-lbl { display: block; font-size: 10px; font-weight: 700; color: var(--tt-muted); margin-bottom: 5px; text-transform: uppercase; }
.dc-inp { width: 100%; background: var(--tt-bg-0); border: 1px solid var(--tt-line-solid); color: #fff; padding: 10px; border-radius: 4px; box-sizing: border-box; font-size: 13px; font-weight: 600; }
.dc-inp:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2); }
.dc-btn-save { width: 100%; padding: 12px; background: linear-gradient(135deg, var(--blue), #1f6feb); color: #fff; border: none; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; cursor: pointer; margin-top: 10px; }
.dc-btn-del { width: 100%; padding: 12px; background: transparent; color: var(--red); border: 1px solid var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; cursor: pointer; margin-top: 10px; }
.dc-btn-del:hover { background: rgba(218, 54, 51, 0.1); }
.dc-search-wrap { position: relative; z-index: 50; }
.dc-res-list { position: fixed; width: 300px; max-height: 200px; overflow-y: auto; background: var(--tt-surface-solid); border: 1px solid var(--blue); z-index: 200000; display: none; box-shadow: 0 10px 50px rgba(0,0,0,0.9); border-radius: 6px; }
.dc-res-item { padding: 10px 15px; cursor: pointer; font-size: 12px; border-bottom: 1px solid var(--tt-line-solid); color: var(--tt-text-soft); }
.dc-res-item:hover { background: var(--blue); color: #fff; }
.att-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.att-tag { background: rgba(218, 54, 51, 0.15); color: #ffadad; padding: 4px 10px; border-radius: 20px; font-size: 11px; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(218, 54, 51, 0.3); font-weight: 600; }
.att-rem { cursor: pointer; font-weight: 900; }

/* LOADING OVERLAY */
.tt-loading-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(13, 17, 23, 0.9); z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.tt-spinner { width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.1); border-top: 4px solid var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 10px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- NEUE ADDONS (UNVERÄNDERTER BASIS-CODE OBEN) --- */
.snipe-time-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.snipe-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(255,255,255,0.03); padding: 6px 10px; border-radius: 4px; border-left: 2px solid var(--accent); }
.snipe-lbl { font-size: 10px; text-transform: uppercase; color: var(--tt-muted); font-weight: 700; width: 50px; }
.snipe-val { font-family: monospace; font-size: 13px; color: #fff; font-weight: 700; }
.red-bold { color: var(--red); font-weight: 900; }
.tt-alert-box { background:rgba(255,92,92, 0.15); border:1px solid var(--tt-red); color:var(--tt-red); padding:10px; margin-bottom:15px; border-radius:6px; font-size:12px; display:flex; align-items:center; gap:10px; }

/* --- MOBILE OPTIMIZATION (< 900px) --- */
@media screen and (max-width: 900px) {
    .tt-dc-grid { grid-template-columns: 1fr; }
    .tt-top-section { flex-direction: column; gap: 10px; }
    .tt-mini-grid { width: 100%; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .tt-actions-right { width: 100%; justify-content: space-between; flex-wrap: wrap; }
    .tt-btn-create, .tt-btn-archive { flex: 1; justify-content: center; }
    
    .tt-modal.wide, .tt-modal.medium, .tt-modal.large { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; border: none; top: 0; left: 0; }
    .tt-modal-body { padding: 10px; height: calc(100vh - 60px); overflow-y: scroll; }
    
    /* MOBILE LIST HEIGHT */
    .dc-list-body { max-height: 150px; }
    
    /* Mobile Send Table (Card View) */
    .mt-table-wrap { background: transparent; border: none; overflow: visible; }
    .mt-table, .mt-table tbody, .mt-table tr, .mt-table td { display: block; width: 100%; }
    .mt-table thead { display: none; }
    .mt-table tr { background: var(--tt-surface-solid); border: 1px solid var(--tt-line-solid); margin-bottom: 15px; border-radius: 8px; padding: 0; position: relative; }
    
    /* Village Header (Clickable) */
    .mt-table td.td-left { background: var(--tt-bg-2); padding: 12px; font-weight: 800; border-bottom: 1px solid var(--tt-line-solid); display: flex; justify-content: space-between; align-items: center; color: #fff; cursor: pointer; }
    .mt-table td.td-left::after { content: "▼"; font-size: 10px; color: var(--tt-muted); transition: transform 0.2s; }
    .mt-table tr.is-expanded td.td-left::after { transform: rotate(180deg); color: var(--accent); }
    
    /* Hidden Content */
    .mt-table td:not(.td-left) { display: none; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    
    /* Expanded State */
    .mt-table tr.is-expanded td { display: flex; flex-direction: row; justify-content: space-between; align-items: center; }
    .mt-table td:not(.td-left)::before { content: attr(data-label); font-size: 11px; font-weight: 700; color: var(--tt-muted); width: 80px; }
    
    .mt-inp { width: 80px; height: 34px; font-size: 14px; }
    .mt-cell-row { gap: 15px; width: 100%; justify-content: flex-end; }
    .mt-info-col { align-items: flex-end; }
}

/* fix6 deffcalls buttons alt */
.tt-btn,.tt-btn-primary,.tt-btn-secondary,.tt-action-btn,.tt-btn-head,.tt-btn-create{height:40px!important;padding:0 16px!important;border-radius:12px!important;font-size:12px!important;font-weight:800!important;transform:none!important;}


/* ===== MIGRIERT AUS verteidigung_mein_einsatzplan.css ===== */

/* Mein Einsatzplan */


/* ===== MIGRIERT AUS verteidigung_privater_einsatzplan.css ===== */

/* Privater Einsatzplan */
