/* SEARCH STYLES */
.kr-search-wrapper { position: relative; margin-bottom: 20px; font-family: sans-serif; display: flex; gap: 10px; align-items: flex-end; }
.kr-search-input-wrap { flex-grow: 1; position: relative; }

.kr-search-input { 
    width: 100%; padding: 12px 15px; font-size: 16px; 
    border: 2px solid #444; border-radius: 4px;
    color: #fff; background-color: #1a1a1a;
    background-repeat: no-repeat; background-position: 98% center; background-size: 20px;
}
.kr-search-input:focus { border-color: #0073aa; outline: none; }

.kr-results-list {
    position: absolute; top: 100%; left: 0; right: 0; 
    background: #1a1a1a; border: 1px solid #444; border-top: none;
    max-height: 300px; overflow-y: auto; z-index: 9999; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.5); display: none;
}
.kr-result-item { padding: 10px 15px; border-bottom: 1px solid #333; cursor: pointer; }
.kr-result-item:hover { background: #353535; }
.kr-result-item strong { display: block; color: #d4d4d4; font-size: 15px; }
.kr-result-item small { display: block; color: #888; font-size: 12px; margin-top: 2px; }

/* MODAL STYLES (Dark) */
.kr-modal, #kr-asp-modal {
    display: none; position: fixed; z-index: 100000; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; 
    background-color: rgba(0,0,0,0.85); /* Stärkeres Schwarz statt Blur für Performance */
    /* backdrop-filter: blur(4px);  <-- VERURSACHT RUCKELN */
}
.kr-modal-content {
    background-color: #1d1b1b; margin: 5% auto; padding: 0;
    border: 1px solid #444; width: 550px; max-width: 90%;
    border-radius: 4px; box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    color: #d4d4d4;
}
.kr-modal-header { 
    padding: 15px 20px; background: #252525; border-bottom: 1px solid #444; 
    border-radius: 4px 4px 0 0; display:flex; justify-content:space-between; align-items:center;
}
.kr-modal-header h3 { margin: 0; font-size: 18px; color: #fff; }
.kr-close, .kr-close-asp { color: #888; font-size: 28px; font-weight: bold; cursor: pointer; }
.kr-close:hover { color: #fff; }

.kr-modal-body { padding: 20px; max-height: 70vh; overflow-y: auto; }

.kr-form-row { margin-bottom: 15px; }
.kr-form-row label { display: block; margin-bottom: 5px; font-weight: 600; color: #ccc; }
.kr-form-row input[type="text"], .kr-form-row input[type="email"] { 
    width: 100%; padding: 10px; border: 1px solid #444; border-radius: 4px; 
    box-sizing: border-box; background: #1a1a1a; color: #fff; 
}
.kr-form-row input:focus { border-color: #0073aa; outline: none; }

/* Checkbox Style */
.kr-checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; padding: 10px; background: #252525; border-radius: 4px; }
.kr-checkbox-row label { margin: 0; cursor: pointer; color: #fff; }
.kr-checkbox-row input { transform: scale(1.2); cursor: pointer; }

.kr-modal-footer { 
    padding: 15px 20px; background: #252525; text-align: right; 
    border-top: 1px solid #444; border-radius: 0 0 4px 4px; 
}
.kr-error-msg { color: #ff6b6b; margin-bottom: 10px; display: none; }

/* Invoice Section Hidden by Default */
#kr-invoice-section { display: none; border-top: 1px solid #444; margin-top: 15px; padding-top: 15px; }
.kr-section-title { color: #0073aa; font-size: 14px; text-transform: uppercase; font-weight: bold; margin-bottom: 10px; }